i2c: introduce device_i2c_driver() macro
...
Add macro and dependency to avoid boilerplate code. Since now simple
i2c drivers only have to include the i2c.h header and call the
device_i2c_driver() macro to register a i2c device driver.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Marco Felsch
authored
on 18 Oct 2018
Sascha Hauer
committed
on 19 Oct 2018