i2c: mux: gpio: adhere to coding style
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 21 Sep 2023 08:57:51 +0000 (10:57 +0200)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 Sep 2023 09:58:18 +0000 (11:58 +0200)
Advertise our coding style by following it :)

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/muxes/i2c-mux-gpio.c

index 5d5cbe0130cdf99de1917d5c013b8894c622a727..43b24286da93bc2bd3113d5e33758211862fbbbc 100644 (file)
@@ -23,7 +23,7 @@ struct gpiomux {
        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));
 
@@ -59,7 +59,7 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux,
        struct device_node *adapter_np;
        struct i2c_adapter *adapter = NULL;
        struct fwnode_handle *child;
-       unsigned *values;
+       unsigned int *values;
        int rc, i = 0;
 
        if (is_of_node(fwnode)) {
@@ -102,7 +102,6 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux,
        device_for_each_child_node(dev, child) {
                if (is_of_node(child)) {
                        fwnode_property_read_u32(child, "reg", values + i);
-
                } else if (is_acpi_node(child)) {
                        rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values + i);
                        if (rc)
@@ -125,7 +124,7 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev)
        struct gpiomux *mux;
        struct i2c_adapter *parent;
        struct i2c_adapter *root;
-       unsigned initial_state;
+       unsigned int initial_state;
        int i, ngpios, ret;
 
        mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL);