summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ws16c48.c
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2021-06-05 00:58:57 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-06-07 15:39:19 +0200
commit9b3c47f124b60770f7738710e95801284d69d24f (patch)
tree398e4260fcd021b82e59c80ad9a01f5ebf74c264 /drivers/gpio/gpio-ws16c48.c
parentgpio-dwapb: Drop unused headers and sort the rest (diff)
downloadlinux-9b3c47f124b60770f7738710e95801284d69d24f.tar.xz
linux-9b3c47f124b60770f7738710e95801284d69d24f.zip
gpio: regmap: move drvdata to config data
Drop gpio_regmap_set_drvdata() and instead add it to the configuration data passed to gpio_regmap_register(). gpio_regmap_set_drvdata() can't really be used in a race free way. This is because the gpio_regmap object which is needed by _set_drvdata() is returned by gpio_regmap_register(). On the other hand, the callbacks which use the drvdata might already be called right after the gpiochip_add() call in gpio_regmap_register(). Therefore, we have to provide the drvdata early before we call gpiochip_add(). Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-ws16c48.c')
0 files changed, 0 insertions, 0 deletions