diff options
author | Wang Qing <wangqing@vivo.com> | 2020-06-15 10:54:02 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-06-16 10:03:04 +0200 |
commit | a9b9b2af40c717adbc4981acd29c53b92be3a99a (patch) | |
tree | 01a0ff5d44339f72e26b947d3e84bef87a1bce83 /drivers/video | |
parent | Linux 5.8-rc1 (diff) | |
download | linux-a9b9b2af40c717adbc4981acd29c53b92be3a99a.tar.xz linux-a9b9b2af40c717adbc4981acd29c53b92be3a99a.zip |
backlight: lm3533_bl: Use kobj_to_dev() instead
Use kobj_to_dev() instead of container_of()
Signed-off-by: Wang Qing <wangqing@vivo.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/lm3533_bl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/lm3533_bl.c b/drivers/video/backlight/lm3533_bl.c index ee09d1bd02b9..0c7830f793de 100644 --- a/drivers/video/backlight/lm3533_bl.c +++ b/drivers/video/backlight/lm3533_bl.c @@ -235,7 +235,7 @@ static struct attribute *lm3533_bl_attributes[] = { static umode_t lm3533_bl_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) { - struct device *dev = container_of(kobj, struct device, kobj); + struct device *dev = kobj_to_dev(kobj); struct lm3533_bl *bl = dev_get_drvdata(dev); umode_t mode = attr->mode; |