Skip to content

Commit b7a96bb

Browse files
AlisonSchofieldjic23
authored andcommitted
iio: light: jsa1212: remove unneeded i2c check functionality test
This driver does not call i2c_smbus_read|write_byte_data(), so remove the corresponding functionality test. It uses regmap to handle byte transfers transparently. Signed-off-by: Alison Schofield <[email protected]> Reviewed-by:Kuppuswamy Sathyanarayanan <[email protected]> Reviewed-by: Matt Ranostay <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 44072b2 commit b7a96bb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/iio/light/jsa1212.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,6 @@ static int jsa1212_probe(struct i2c_client *client,
325325
struct regmap *regmap;
326326
int ret;
327327

328-
if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
329-
return -EOPNOTSUPP;
330-
331328
indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data));
332329
if (!indio_dev)
333330
return -ENOMEM;

0 commit comments

Comments
 (0)