2005-04-01 03:03:07

by Corey Minyard

[permalink] [raw]
Subject: sysfs for IPMI, for new mm kernels

Andrew,

There are some major changes in the current mm kernels to the class
interface that require changes to the IPMI driver. Thus the previously
posted sysfs changes for IPMI are now incorrect. Here's a new one.

-Corey


Attachments:
ipmi-sysfs.diff (2.03 kB)

2005-04-01 03:43:05

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: sysfs for IPMI, for new mm kernels

On Thursday 31 March 2005 22:02, Corey Minyard wrote:
> +       snprintf(name, sizeof(name), "ipmi%d", if_num);
> +       class_device_create(ipmi_class, dev, NULL, name);
>

class_device_create(ipmi_class, dev, NULL, "ipmi%d", if_num) ?

--
Dmitry

2005-04-01 04:23:37

by Corey Minyard

[permalink] [raw]
Subject: Re: sysfs for IPMI, for new mm kernels

Dmitry Torokhov wrote:

>On Thursday 31 March 2005 22:02, Corey Minyard wrote:
>
>
>>+ snprintf(name, sizeof(name), "ipmi%d", if_num);
>>+ class_device_create(ipmi_class, dev, NULL, name);
>>
>>
>>
>
>class_device_create(ipmi_class, dev, NULL, "ipmi%d", if_num) ?
>
>
>
Yes, much better. Let's try again...

-Corey


Attachments:
ipmi-sysfs.diff (1.99 kB)