drivers/i2c/chips: fix unlocked_ioctl functions in Samsung drivers
drivers/dpram: fix ioctl & unlocked_ioctl functions

Also add some debugging if needed in the future.