diff options
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/smiapp/smiapp-quirk.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.c b/drivers/media/i2c/smiapp/smiapp-quirk.c index cf048128367c..725cf62836c6 100644 --- a/drivers/media/i2c/smiapp/smiapp-quirk.c +++ b/drivers/media/i2c/smiapp/smiapp-quirk.c | |||
@@ -61,26 +61,6 @@ void smiapp_replace_limit(struct smiapp_sensor *sensor, | |||
61 | sensor->limits[limit] = val; | 61 | sensor->limits[limit] = val; |
62 | } | 62 | } |
63 | 63 | ||
64 | int smiapp_replace_limit_at(struct smiapp_sensor *sensor, | ||
65 | u32 reg, u32 val) | ||
66 | { | ||
67 | struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); | ||
68 | int i; | ||
69 | |||
70 | for (i = 0; smiapp_reg_limits[i].addr; i++) { | ||
71 | if ((smiapp_reg_limits[i].addr & 0xffff) != reg) | ||
72 | continue; | ||
73 | |||
74 | smiapp_replace_limit(sensor, i, val); | ||
75 | |||
76 | return 0; | ||
77 | } | ||
78 | |||
79 | dev_dbg(&client->dev, "quirk: bad register 0x%4.4x\n", reg); | ||
80 | |||
81 | return -EINVAL; | ||
82 | } | ||
83 | |||
84 | bool smiapp_quirk_reg(struct smiapp_sensor *sensor, | 64 | bool smiapp_quirk_reg(struct smiapp_sensor *sensor, |
85 | u32 reg, u32 *val) | 65 | u32 reg, u32 *val) |
86 | { | 66 | { |