Commit 0c051c82 authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang

i2c: mux: gpio: adhere to coding style

Advertise our coding style by following it :)
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 24051338
...@@ -23,7 +23,7 @@ struct gpiomux { ...@@ -23,7 +23,7 @@ struct gpiomux {
struct gpio_desc **gpios; struct gpio_desc **gpios;
}; };
static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val) static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned int val)
{ {
DECLARE_BITMAP(values, BITS_PER_TYPE(val)); DECLARE_BITMAP(values, BITS_PER_TYPE(val));
...@@ -59,7 +59,7 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux, ...@@ -59,7 +59,7 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux,
struct device_node *adapter_np; struct device_node *adapter_np;
struct i2c_adapter *adapter = NULL; struct i2c_adapter *adapter = NULL;
struct fwnode_handle *child; struct fwnode_handle *child;
unsigned *values; unsigned int *values;
int rc, i = 0; int rc, i = 0;
if (is_of_node(fwnode)) { if (is_of_node(fwnode)) {
...@@ -102,7 +102,6 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux, ...@@ -102,7 +102,6 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux,
device_for_each_child_node(dev, child) { device_for_each_child_node(dev, child) {
if (is_of_node(child)) { if (is_of_node(child)) {
fwnode_property_read_u32(child, "reg", values + i); fwnode_property_read_u32(child, "reg", values + i);
} else if (is_acpi_node(child)) { } else if (is_acpi_node(child)) {
rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values + i); rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values + i);
if (rc) if (rc)
...@@ -125,7 +124,7 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev) ...@@ -125,7 +124,7 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev)
struct gpiomux *mux; struct gpiomux *mux;
struct i2c_adapter *parent; struct i2c_adapter *parent;
struct i2c_adapter *root; struct i2c_adapter *root;
unsigned initial_state; unsigned int initial_state;
int i, ngpios, ret; int i, ngpios, ret;
mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL); mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL);
......
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