Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: tlc591xx: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check

This checking is done by regmap_get_i2c_bus() which is called in
devm_regmap_init_i2c().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>

authored by

Axel Lin and committed by
Jacek Anaszewski
f3a2a097 259f5ba3

-4
-4
drivers/leds/leds-tlc591xx.c
··· 231 231 if (!count || count > tlc591xx->max_leds) 232 232 return -EINVAL; 233 233 234 - if (!i2c_check_functionality(client->adapter, 235 - I2C_FUNC_SMBUS_BYTE_DATA)) 236 - return -EIO; 237 - 238 234 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); 239 235 if (!priv) 240 236 return -ENOMEM;