On Tue, 23 Jan 2018 11:24:06 +0100
Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote:

> +++ b/drivers/usb/class/usblp.c

> -static ssize_t usblp_show_ieee1284_id(struct device *dev, struct 
> device_attribute *attr, char *buf)
> +static ssize_t ieee1284_id_show(struct device *dev, struct device_attribute 
> *attr, char *buf)

> -static DEVICE_ATTR(ieee1284_id, S_IRUGO, usblp_show_ieee1284_id, NULL);
> +static DEVICE_ATTR_RO(ieee1284_id);

You know, I hate this interface a little: it's too implicit. Before,
one could hit '*' in vi and get to the function that implements it.
Now, you have to know the foo_show convention. But if you think
it's worth being a bit more explicit about "this is intended to
be a RO attribute", then okay.

Acked-by: Pete Zaitcev <zait...@redhat.com>

-- P
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to