mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
GenWQE: use kobj_to_dev()
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
85f4f39c80
commit
6908b45eaf
1 changed files with 1 additions and 1 deletions
|
|
@ -278,7 +278,7 @@ static umode_t genwqe_is_visible(struct kobject *kobj,
|
|||
struct attribute *attr, int n)
|
||||
{
|
||||
unsigned int j;
|
||||
struct device *dev = container_of(kobj, struct device, kobj);
|
||||
struct device *dev = kobj_to_dev(kobj);
|
||||
struct genwqe_dev *cd = dev_get_drvdata(dev);
|
||||
umode_t mode = attr->mode;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue