Commit 790923e5 authored by Mark Brown's avatar Mark Brown

regmap: Remove unused type and list fields from bus interface

We no longer enumerate the bus types, we rely on the driver telling us
this on init.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent cb3c2dcf
...@@ -90,7 +90,6 @@ static int regmap_i2c_read(struct device *dev, ...@@ -90,7 +90,6 @@ static int regmap_i2c_read(struct device *dev,
} }
static struct regmap_bus regmap_i2c = { static struct regmap_bus regmap_i2c = {
.type = &i2c_bus_type,
.write = regmap_i2c_write, .write = regmap_i2c_write,
.gather_write = regmap_i2c_gather_write, .gather_write = regmap_i2c_gather_write,
.read = regmap_i2c_read, .read = regmap_i2c_read,
......
...@@ -47,7 +47,6 @@ static int regmap_spi_read(struct device *dev, ...@@ -47,7 +47,6 @@ static int regmap_spi_read(struct device *dev,
} }
static struct regmap_bus regmap_spi = { static struct regmap_bus regmap_spi = {
.type = &spi_bus_type,
.write = regmap_spi_write, .write = regmap_spi_write,
.gather_write = regmap_spi_gather_write, .gather_write = regmap_spi_gather_write,
.read = regmap_spi_read, .read = regmap_spi_read,
......
...@@ -60,8 +60,6 @@ typedef int (*regmap_hw_read)(struct device *dev, ...@@ -60,8 +60,6 @@ typedef int (*regmap_hw_read)(struct device *dev,
/** /**
* Description of a hardware bus for the register map infrastructure. * Description of a hardware bus for the register map infrastructure.
* *
* @list: Internal use.
* @type: Bus type, used to identify bus to be used for a device.
* @write: Write operation. * @write: Write operation.
* @gather_write: Write operation with split register/value, return -ENOTSUPP * @gather_write: Write operation with split register/value, return -ENOTSUPP
* if not implemented on a given device. * if not implemented on a given device.
...@@ -73,8 +71,6 @@ typedef int (*regmap_hw_read)(struct device *dev, ...@@ -73,8 +71,6 @@ typedef int (*regmap_hw_read)(struct device *dev,
* a read. * a read.
*/ */
struct regmap_bus { struct regmap_bus {
struct list_head list;
struct bus_type *type;
regmap_hw_write write; regmap_hw_write write;
regmap_hw_gather_write gather_write; regmap_hw_gather_write gather_write;
regmap_hw_read read; regmap_hw_read read;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment