Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 687b81d0 authored by Wolfram Sang's avatar Wolfram Sang
Browse files

i2c: move OF helpers into the core



I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
that it is much cleaner to have this in the core. This also removes a
circular dependency between the helpers and the core, and so we can
finally register child nodes in the core instead of doing this manually
in each driver. So, fix the drivers and documentation, too.

Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent c1d15b68
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -238,7 +238,6 @@ An I2C bus (controller) driver does:
	if (ret)
		/* handle error */

	of_i2c_register_devices(adapter);
	/* Enumerate the slave devices behind this bus via ACPI */
	acpi_i2c_register_devices(adapter);

+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/of_gpio.h>
#include <linux/of_i2c.h>
#include <linux/slab.h>
#include <linux/export.h>

+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
 */

#include <linux/i2c.h>
#include <linux/of_i2c.h>
#include <linux/pinctrl/pinmux.h>
#include <linux/pinctrl/consumer.h>
#include <drm/drm_encoder_slave.h>
+0 −1
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
 */

#include <linux/i2c.h>
#include <linux/of_i2c.h>
#include <linux/gpio.h>
#include <linux/of_gpio.h>
#include <linux/pinctrl/pinmux.h>
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@

#include <linux/module.h>
#include <linux/of_gpio.h>
#include <linux/of_i2c.h>
#include <linux/i2c.h>

#include "drm.h"

Loading