Thread (38 messages) 38 messages, 6 authors, 2018-06-07

Re: [PATCH 07/19] serdev: Allows dynamic creation of devices via sysfs

From: Andy Shevchenko <hidden>
Date: 2018-05-29 20:35:18
Also in: lkml

On Tue, May 29, 2018 at 4:10 PM, Ricardo Ribalda Delgado
[off-list ref] wrote:
Allow creating and deleting devices via sysfs. Devices created will be
matched to serdev drivers via modalias (the string provided by the user)
and deleted via their name.
+       int err;
+       char *nline;
Better to read in reversed order.
+       nline = strchr(buf, '\n');
+       if (nline)
+               *nline = '\0';
strim() / strstrip() ?
+       nline = strchr(buf, '\n');
+       if (nline)
+               *nline = '\0';
Ditto.
+static DEVICE_ATTR_IGNORE_LOCKDEP(delete_device, 0200, NULL,
+                                 delete_device_store);
Perhaps leave it on one line?

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help