We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f519f78 commit 6ffd4c7Copy full SHA for 6ffd4c7
drivers/input/touchscreen/tsc200x-core.c
@@ -338,7 +338,7 @@ static struct attribute *tsc200x_attrs[] = {
338
static umode_t tsc200x_attr_is_visible(struct kobject *kobj,
339
struct attribute *attr, int n)
340
{
341
- struct device *dev = container_of(kobj, struct device, kobj);
+ struct device *dev = kobj_to_dev(kobj);
342
struct tsc200x *ts = dev_get_drvdata(dev);
343
umode_t mode = attr->mode;
344
0 commit comments