Skip to content

Commit 4cfe6cd

Browse files
author
Bartosz Golaszewski
committed
Merge tag 'intel-gpio-v6.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel into gpio/for-next
intel-gpio for v6.19-1 * Replace min_t() by min() to avoid cutting upper bits and do type checking gpiolib: acpi: use min() instead of min_t()
2 parents 194832d + b2a186c commit 4cfe6cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpiolib-acpi-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ acpi_gpio_adr_space_handler(u32 function, acpi_physical_address address,
10991099
return AE_BAD_PARAMETER;
11001100
}
11011101

1102-
length = min_t(u16, agpio->pin_table_length, pin_index + bits);
1102+
length = min(agpio->pin_table_length, pin_index + bits);
11031103
for (i = pin_index; i < length; ++i) {
11041104
unsigned int pin = agpio->pin_table[i];
11051105
struct acpi_gpio_connection *conn;

0 commit comments

Comments
 (0)