[media] media: i2c: ths7303: make the pdata as a constant pointer
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Sat, 25 May 2013 16:39:36 +0000 (13:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jun 2013 14:42:17 +0000 (11:42 -0300)
commitdd8c393b3c39f7ebd9ad69ce50cc836773d512b6
tree9d0364b9ff8de67daef444390dd26f1d85da286c
parent8524ce558a0111762efa1a6b5ba9ce5e092b4707
[media] media: i2c: ths7303: make the pdata as a constant pointer

generally the pdata needs to be a constant pointer in the device
state structure. This patch makes the pdata as a constant pointer
and alongside returns -EINVAL when pdata is NULL.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/ths7303.c