[patch 11/18] PS3: System-bus modinfo attribute
Stephen Rothwell
sfr at canb.auug.org.au
Wed Jun 6 13:17:55 EST 2007
On Tue, 05 Jun 2007 20:00:44 -0700 Geoff Levand <geoffrey.levand at am.sony.com> wrote:
>
> +static ssize_t modalias_show(struct device *_dev, struct device_attribute *a,
> + char *buf)
> +{
> + struct ps3_system_bus_device *dev = ps3_dev_to_system_bus_dev(_dev);
> + int len = snprintf(buf, PAGE_SIZE, "ps3:%d\n", dev->match_id);
Broken whitespace ...
> +
> + return (len >= PAGE_SIZE) ? (PAGE_SIZE - 1) : len;
And here.
--
Cheers,
Stephen Rothwell sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070606/0448c09a/attachment.pgp>
More information about the Linuxppc-dev
mailing list