Skip to content

Commit 0c051c8

Browse files
Wolfram Sangwsakernel
authored andcommitted
i2c: mux: gpio: adhere to coding style
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>
1 parent 2405133 commit 0c051c8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

drivers/i2c/muxes/i2c-mux-gpio.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct gpiomux {
2323
struct gpio_desc **gpios;
2424
};
2525

26-
static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val)
26+
static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned int val)
2727
{
2828
DECLARE_BITMAP(values, BITS_PER_TYPE(val));
2929

@@ -59,7 +59,7 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux,
5959
struct device_node *adapter_np;
6060
struct i2c_adapter *adapter = NULL;
6161
struct fwnode_handle *child;
62-
unsigned *values;
62+
unsigned int *values;
6363
int rc, i = 0;
6464

6565
if (is_of_node(fwnode)) {
@@ -102,7 +102,6 @@ static int i2c_mux_gpio_probe_fw(struct gpiomux *mux,
102102
device_for_each_child_node(dev, child) {
103103
if (is_of_node(child)) {
104104
fwnode_property_read_u32(child, "reg", values + i);
105-
106105
} else if (is_acpi_node(child)) {
107106
rc = acpi_get_local_address(ACPI_HANDLE_FWNODE(child), values + i);
108107
if (rc)
@@ -125,7 +124,7 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev)
125124
struct gpiomux *mux;
126125
struct i2c_adapter *parent;
127126
struct i2c_adapter *root;
128-
unsigned initial_state;
127+
unsigned int initial_state;
129128
int i, ngpios, ret;
130129

131130
mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL);

0 commit comments

Comments
 (0)