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 25531d6 commit f519f78Copy full SHA for f519f78
drivers/input/misc/ims-pcu.c
@@ -1228,7 +1228,7 @@ static struct attribute *ims_pcu_attrs[] = {
1228
static umode_t ims_pcu_is_attr_visible(struct kobject *kobj,
1229
struct attribute *attr, int n)
1230
{
1231
- struct device *dev = container_of(kobj, struct device, kobj);
+ struct device *dev = kobj_to_dev(kobj);
1232
struct usb_interface *intf = to_usb_interface(dev);
1233
struct ims_pcu *pcu = usb_get_intfdata(intf);
1234
umode_t mode = attr->mode;
0 commit comments