Skip to content

Commit

Permalink
GenWQE: use kobj_to_dev()
Browse files Browse the repository at this point in the history
Use kobj_to_dev() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Geliang Tang authored and Greg Kroah-Hartman committed Feb 8, 2016
1 parent 85f4f39 commit 6908b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/genwqe/card_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6908b45

Please sign in to comment.