Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: sch311x: Replace unsigned char with u8

This purely syntactic change switches unsigned char to
u8 in the driver.

Cc: Bruno Randolf <br1@einfach.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+7 -7
+7 -7
drivers/gpio/gpio-sch311x.c
··· 162 162 static int sch311x_gpio_get(struct gpio_chip *chip, unsigned offset) 163 163 { 164 164 struct sch311x_gpio_block *block = gpiochip_get_data(chip); 165 - unsigned char data; 165 + u8 data; 166 166 167 167 spin_lock(&block->lock); 168 168 data = inb(block->runtime_reg + block->data_reg); ··· 174 174 static void __sch311x_gpio_set(struct sch311x_gpio_block *block, 175 175 unsigned offset, int value) 176 176 { 177 - unsigned char data = inb(block->runtime_reg + block->data_reg); 177 + u8 data = inb(block->runtime_reg + block->data_reg); 178 178 if (value) 179 179 data |= BIT(offset); 180 180 else ··· 195 195 static int sch311x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) 196 196 { 197 197 struct sch311x_gpio_block *block = gpiochip_get_data(chip); 198 - unsigned char data; 198 + u8 data; 199 199 200 200 spin_lock(&block->lock); 201 201 data = inb(block->runtime_reg + block->config_regs[offset]); ··· 210 210 int value) 211 211 { 212 212 struct sch311x_gpio_block *block = gpiochip_get_data(chip); 213 - unsigned char data; 213 + u8 data; 214 214 215 215 spin_lock(&block->lock); 216 216 ··· 226 226 static int sch311x_gpio_get_direction(struct gpio_chip *chip, unsigned offset) 227 227 { 228 228 struct sch311x_gpio_block *block = gpiochip_get_data(chip); 229 - unsigned char data; 229 + u8 data; 230 230 231 231 spin_lock(&block->lock); 232 232 data = inb(block->runtime_reg + block->config_regs[offset]); ··· 240 240 { 241 241 struct sch311x_gpio_block *block = gpiochip_get_data(chip); 242 242 enum pin_config_param param = pinconf_to_config_param(config); 243 - unsigned char data; 243 + u8 data; 244 244 245 245 switch (param) { 246 246 case PIN_CONFIG_DRIVE_OPEN_DRAIN: ··· 353 353 { 354 354 int err = 0, reg; 355 355 unsigned short base_addr; 356 - unsigned char dev_id; 356 + u8 dev_id; 357 357 358 358 err = sch311x_sio_enter(sio_config_port); 359 359 if (err)