lkml.org 
[lkml]   [2012]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] hwmon: add Maxim MAX197 support
On Thu, 30 Aug 2012 14:09:59 -0700, Guenter Roeck wrote:
> I have the solution for the platform driver.
>
> enum chips { max197, max199 };
>
> [ ... ]
>
> static struct platform_device_id max197_driver_ids[] = {
> {
> .name = "max197",
> .driver_data = max197,
> }, {
> .name = "max199",
> .driver_data = max199,
> }
> };
> MODULE_DEVICE_TABLE(platform, max197_driver_ids);

Wow, I thought this did not exist and this made me rumble a number of
times, and now I see this was finally introduced over 3 years ago.
Cool! And spi has it too now, wonderful world :)

--
Jean Delvare


\
 
 \ /
  Last update: 2012-08-31 17:21    [W:0.066 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site