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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'backlight-next-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight

Pull backlight update from Lee Jones:

- Added a check for the return value of spi_setup() in the l4f00242t03
driver to catch errors

* tag 'backlight-next-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight:
backlight: l4f00242t03: Add check for spi_setup

+4 -1
+4 -1
drivers/video/backlight/l4f00242t03.c
··· 166 166 static int l4f00242t03_probe(struct spi_device *spi) 167 167 { 168 168 struct l4f00242t03_priv *priv; 169 + int ret; 169 170 170 171 priv = devm_kzalloc(&spi->dev, sizeof(struct l4f00242t03_priv), 171 172 GFP_KERNEL); ··· 175 174 176 175 spi_set_drvdata(spi, priv); 177 176 spi->bits_per_word = 9; 178 - spi_setup(spi); 177 + ret = spi_setup(spi); 178 + if (ret < 0) 179 + return dev_err_probe(&spi->dev, ret, "Unable to setup spi.\n"); 179 180 180 181 priv->spi = spi; 181 182