mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
video: fbdev: udlfb: fix kobj_to_dev.cocci warnings
Use kobj_to_dev() instead of container_of() Generated by: scripts/coccinelle/api/kobj_to_dev.cocci Cc: Denis Efremov <efremov@linux.com> Signed-off-by: kernel test robot <lkp@intel.com> Signed-off-by: Julia Lawall <julia.lawall@inria.fr> Cc: Bernie Thompson <bernie@plugable.com> [b.zolnierkie: minor patch summary fixup] [b.zolnierkie: removed "Fixes:" tag (not in upstream tree)] Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/alpine.DEB.2.22.394.2008262252270.2522@hadrien
This commit is contained in:
parent
fe6c6a4af2
commit
6bfea83eec
@ -1457,7 +1457,7 @@ static ssize_t edid_show(
|
||||
struct file *filp,
|
||||
struct kobject *kobj, struct bin_attribute *a,
|
||||
char *buf, loff_t off, size_t count) {
|
||||
struct device *fbdev = container_of(kobj, struct device, kobj);
|
||||
struct device *fbdev = kobj_to_dev(kobj);
|
||||
struct fb_info *fb_info = dev_get_drvdata(fbdev);
|
||||
struct dlfb_data *dlfb = fb_info->par;
|
||||
|
||||
@ -1479,7 +1479,7 @@ static ssize_t edid_store(
|
||||
struct file *filp,
|
||||
struct kobject *kobj, struct bin_attribute *a,
|
||||
char *src, loff_t src_off, size_t src_size) {
|
||||
struct device *fbdev = container_of(kobj, struct device, kobj);
|
||||
struct device *fbdev = kobj_to_dev(kobj);
|
||||
struct fb_info *fb_info = dev_get_drvdata(fbdev);
|
||||
struct dlfb_data *dlfb = fb_info->par;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user