[media] smiapp: Remove unused quirk register functionality
The quirk registers mechanism which allows register to have a static read access value from the sensor specific quirks, is not used. Remove it. It is to be replaced by a more generic register diversion quirk soon. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

vanhempi
ce9c22443e
commit
d4f79a80e6
@@ -172,9 +172,6 @@ static int __smiapp_read(struct smiapp_sensor *sensor, u32 reg, u32 *val,
|
||||
&& len != SMIA_REG_32BIT)
|
||||
return -EINVAL;
|
||||
|
||||
if (smiapp_quirk_reg(sensor, reg, val))
|
||||
goto found_quirk;
|
||||
|
||||
if (len == SMIA_REG_8BIT && !only8)
|
||||
rval = ____smiapp_read(sensor, (u16)reg, len, val);
|
||||
else
|
||||
@@ -182,7 +179,6 @@ static int __smiapp_read(struct smiapp_sensor *sensor, u32 reg, u32 *val,
|
||||
if (rval < 0)
|
||||
return rval;
|
||||
|
||||
found_quirk:
|
||||
if (reg & SMIA_REG_FLAG_FLOAT)
|
||||
*val = float_to_u32_mul_1000000(client, *val);
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user