commit | dd8c393b3c39f7ebd9ad69ce50cc836773d512b6 | [log] [tgz] |
---|---|---|
author | Lad, Prabhakar <prabhakar.csengg@gmail.com> | Sat May 25 13:39:36 2013 -0300 |
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | Thu Jun 13 11:42:17 2013 -0300 |
tree | 9d0364b9ff8de67daef444390dd26f1d85da286c | |
parent | 8524ce558a0111762efa1a6b5ba9ce5e092b4707 [diff] |
[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>