Tag: 5bd28f0701ca989629bfeae86e5167b54804bb60

Staging: most: Use module_i2c_driver

Author: Shraddha Barke <shraddha.6596@gmail.com> Macro module_i2c_driver is used for drivers whose init and exit paths does only register and unregister to i2c API. Remove some boilerplate code by using module_i2c_driver. Problem found using Coccinelle. Signed-off-by: Shraddha Barke Signed-off-by: Greg Kroah-Hartman — drivers/staging/most/hdm-i2c/hdm_i2c.c | 22 +——————— 1 file changed, 1 insertion(+), 21 deletions(-)   diff –git …

Continue reading