Re: [PATCH 5/8] AI TB: HID file for Always Innovating OMAP3-based Touch Book keyboard

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gregoire,

On Wed, Nov 18, 2009 at 06:57:54PM -0800, Gregoire Gentil wrote:
> +
> +int touchbook_create_sysfs(struct hid_device *hdev)
> +{
> + int i;
> + int r;
> +
> + for (i = 0; i < ARRAY_SIZE(touchbook_hid_attrs); i++) {
> + r = device_create_file(&hdev->dev,
> + &touchbook_hid_attrs[i]);
> +
> + if (r) {
> + dev_err(&hdev->dev, "failed to create sysfs file\n");
> + return r;
> + }
> + }
> +

You just reimplemented sysfs attribute group.

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

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux