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.

drm/panel: simple: Remove unneeded gpiod NULL check

The gpiod API checks for NULL descriptors, so there is no need to
duplicate the check in the driver.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1500249939-8075-1-git-send-email-festevam@gmail.com

authored by

Fabio Estevam and committed by
Thierry Reding
756b918d f3621a8e

+2 -4
+2 -4
drivers/gpu/drm/panel/panel-simple.c
··· 187 187 if (!p->prepared) 188 188 return 0; 189 189 190 - if (p->enable_gpio) 191 - gpiod_set_value_cansleep(p->enable_gpio, 0); 190 + gpiod_set_value_cansleep(p->enable_gpio, 0); 192 191 193 192 regulator_disable(p->supply); 194 193 ··· 213 214 return err; 214 215 } 215 216 216 - if (p->enable_gpio) 217 - gpiod_set_value_cansleep(p->enable_gpio, 1); 217 + gpiod_set_value_cansleep(p->enable_gpio, 1); 218 218 219 219 if (p->desc->delay.prepare) 220 220 msleep(p->desc->delay.prepare);