summaryrefslogtreecommitdiff
path: root/src/drivers/generic
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-11-27 17:02:10 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-01-23 14:43:49 +0000
commit2aa3b16a2b9489e9e98da5554c4babed9b6b224c (patch)
treeccc21727f2ec26981caf3f4bb64957ae3b340f83 /src/drivers/generic
parent1d191273304d658fcf5a832c163c4230b1575127 (diff)
src/drivers: Remove needless '&' on function pointers
Change-Id: I7a99d0dcbc8ea1362a12a68fa519c49058d30a05 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/29868 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/drivers/generic')
-rw-r--r--src/drivers/generic/adau7002/adau7002.c6
-rw-r--r--src/drivers/generic/generic/generic.c6
-rw-r--r--src/drivers/generic/gpio_keys/gpio_keys.c6
-rw-r--r--src/drivers/generic/gpio_regulator/gpio_regulator.c6
-rw-r--r--src/drivers/generic/max98357a/max98357a.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/src/drivers/generic/adau7002/adau7002.c b/src/drivers/generic/adau7002/adau7002.c
index 38d3d07a01..a8a4128573 100644
--- a/src/drivers/generic/adau7002/adau7002.c
+++ b/src/drivers/generic/adau7002/adau7002.c
@@ -72,8 +72,8 @@ static struct device_operations adau7002_ops = {
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
- .acpi_name = &adau7002_acpi_name,
- .acpi_fill_ssdt_generator = &adau7002_fill_ssdt,
+ .acpi_name = adau7002_acpi_name,
+ .acpi_fill_ssdt_generator = adau7002_fill_ssdt,
#endif
};
@@ -84,5 +84,5 @@ static void adau7002_enable(struct device *dev)
struct chip_operations drivers_generic_adau7002_ops = {
CHIP_NAME("Analog Digital DMIC")
- .enable_dev = &adau7002_enable
+ .enable_dev = adau7002_enable
};
diff --git a/src/drivers/generic/generic/generic.c b/src/drivers/generic/generic/generic.c
index 37fbab5c61..b5541a399d 100644
--- a/src/drivers/generic/generic/generic.c
+++ b/src/drivers/generic/generic/generic.c
@@ -83,8 +83,8 @@ static struct device_operations generic_dev_ops = {
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
- .acpi_name = &generic_dev_acpi_name,
- .acpi_fill_ssdt_generator = &generic_dev_fill_ssdt_generator,
+ .acpi_name = generic_dev_acpi_name,
+ .acpi_fill_ssdt_generator = generic_dev_fill_ssdt_generator,
};
static void generic_dev_enable(struct device *dev)
@@ -94,5 +94,5 @@ static void generic_dev_enable(struct device *dev)
struct chip_operations drivers_generic_generic_ops = {
CHIP_NAME("Generic Device")
- .enable_dev = &generic_dev_enable
+ .enable_dev = generic_dev_enable
};
diff --git a/src/drivers/generic/gpio_keys/gpio_keys.c b/src/drivers/generic/gpio_keys/gpio_keys.c
index 5ecb63e685..77e7740c1c 100644
--- a/src/drivers/generic/gpio_keys/gpio_keys.c
+++ b/src/drivers/generic/gpio_keys/gpio_keys.c
@@ -116,8 +116,8 @@ static struct device_operations gpio_keys_ops = {
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
- .acpi_name = &gpio_keys_acpi_name,
- .acpi_fill_ssdt_generator = &gpio_keys_fill_ssdt_generator,
+ .acpi_name = gpio_keys_acpi_name,
+ .acpi_fill_ssdt_generator = gpio_keys_fill_ssdt_generator,
};
static void gpio_keys_enable(struct device *dev)
@@ -127,5 +127,5 @@ static void gpio_keys_enable(struct device *dev)
struct chip_operations drivers_generic_gpio_keys_ops = {
CHIP_NAME("GPIO Keys")
- .enable_dev = &gpio_keys_enable
+ .enable_dev = gpio_keys_enable
};
diff --git a/src/drivers/generic/gpio_regulator/gpio_regulator.c b/src/drivers/generic/gpio_regulator/gpio_regulator.c
index c038392bb7..3b335252bb 100644
--- a/src/drivers/generic/gpio_regulator/gpio_regulator.c
+++ b/src/drivers/generic/gpio_regulator/gpio_regulator.c
@@ -75,8 +75,8 @@ static struct device_operations gpio_regulator_ops = {
.read_resources = DEVICE_NOOP,
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
- .acpi_name = &gpio_regulator_acpi_name,
- .acpi_fill_ssdt_generator = &gpio_regulator_fill_ssdt_generator,
+ .acpi_name = gpio_regulator_acpi_name,
+ .acpi_fill_ssdt_generator = gpio_regulator_fill_ssdt_generator,
};
static void gpio_regulator_enable(struct device *dev)
@@ -86,5 +86,5 @@ static void gpio_regulator_enable(struct device *dev)
struct chip_operations drivers_generic_gpio_regulator_ops = {
CHIP_NAME("GPIO Regulator")
- .enable_dev = &gpio_regulator_enable
+ .enable_dev = gpio_regulator_enable
};
diff --git a/src/drivers/generic/max98357a/max98357a.c b/src/drivers/generic/max98357a/max98357a.c
index f9b2d6cb55..8e5ea0c91e 100644
--- a/src/drivers/generic/max98357a/max98357a.c
+++ b/src/drivers/generic/max98357a/max98357a.c
@@ -77,8 +77,8 @@ static struct device_operations max98357a_ops = {
.set_resources = DEVICE_NOOP,
.enable_resources = DEVICE_NOOP,
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
- .acpi_name = &max98357a_acpi_name,
- .acpi_fill_ssdt_generator = &max98357a_fill_ssdt,
+ .acpi_name = max98357a_acpi_name,
+ .acpi_fill_ssdt_generator = max98357a_fill_ssdt,
#endif
};
@@ -105,5 +105,5 @@ static void max98357a_enable(struct device *dev)
struct chip_operations drivers_generic_max98357a_ops = {
CHIP_NAME("Maxim Integrated 98357A Amplifier")
- .enable_dev = &max98357a_enable
+ .enable_dev = max98357a_enable
};