hid:Add warning message if sysfs group is not created for passed kobject in the function, mt_probe
A message that is not in the archive (sent off-list or not yet received): [email protected]
Benjamin Tissoires
Reviewed-byHi Nick,
Quoted 14 lines · Nicholas Krause
This adds a warning message stating that the sysfs group was not able to be created for the passed
hid_devicestructure pointer withdev_warn.Signed-off-by Nicholas Krause <[email protected]>--- drivers/hid/hid-multitouch.c | 2 ++ 1 file changed, 2 insertions(+)drivers/hid/hid-multitouch.c +0
-0
drivers/hid/hid-multitouch.c static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id) · line 1137
Quoted 5 lines
drivers/hid/hid-multitouch.c +2
-0@@ -1133,6 +1133,8 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)return ret; ret =sysfs_create_group (&hdev->dev.kobj, &mt_attribute_group); +if (ret) +dev_warn (&hdev->dev,"Cannot allocate sysfs group for %s\n" , hdev->name);
Just nitpicking here. Checkpatch.pl complains about a line over 80 characters here. Could you (or maybe just Jiri) fix that?
Otherwise:
Cheers,
Benjamin
Quoted 6 lines
drivers/hid/hid-multitouch.c +0
-0mt_set_maxcontacts (hdev);mt_set_input_mode (hdev);Signature · 1 line
2.5.0
Jiri Kosina
maintainerQuoted 23 lines · Benjamin Tissoires
Quoted 14 lines
This adds a warning message stating that the sysfs group was not able to be created for the passed
hid_devicestructure pointer withdev_warn.Signed-off-by Nicholas Krause <[email protected]>--- drivers/hid/hid-multitouch.c | 2 ++ 1 file changed, 2 insertions(+)drivers/hid/hid-multitouch.c +0
-0drivers/hid/hid-multitouch.c static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id) · line 1137
Quoted 5 lines
drivers/hid/hid-multitouch.c +2
-0@@ -1133,6 +1133,8 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)return ret; ret =sysfs_create_group (&hdev->dev.kobj, &mt_attribute_group); +if (ret) +dev_warn (&hdev->dev,"Cannot allocate sysfs group for %s\n" , hdev->name);Just nitpicking here. Checkpatch.pl complains about a line over 80 characters here. Could you (or maybe just Jiri) fix that?
Quoted 2 lines
Otherwise:
Reviewed-by Benjamin Tissoires <[email protected]>
Thanks. I've reformatted the source (and also changelog a bit) and applied.
Signature · 2 lines
Jiri Kosina SUSE Labs