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

leds: spi-byte: Utilise temporary variable for struct device

We have a temporary variable to keep a pointer to struct device.
Utilise it where it makes sense.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240606173037.3091598-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Andy Shevchenko and committed by
Lee Jones
9ed388d1 67b66160

+1 -1
+1 -1
drivers/leds/leds-spi-byte.c
··· 116 116 init_data.devicename = "leds-spi-byte"; 117 117 init_data.default_label = ":"; 118 118 119 - ret = devm_led_classdev_register_ext(&spi->dev, &led->ldev, &init_data); 119 + ret = devm_led_classdev_register_ext(dev, &led->ldev, &init_data); 120 120 if (ret) { 121 121 mutex_destroy(&led->mutex); 122 122 return ret;