On 7/28/21 2:19 PM, Armin Wolf wrote:
On 28.07.21 23:07 Guenter Roeck wrote:
On 7/28/21 1:51 PM, W_Armin@xxxxxx wrote:
From: Armin Wolf <W_Armin@xxxxxx>
This patch series is converting the dell-smm-hwmon driver
to the new hwmon registration API. In order to do so,
it introduces a platform device in the first patch, and
applies some optimisations in the next three patches.
The switch to the new hwmon registration API is done in
the next patch. The last patch is fixing a small bug.
The caching of the fan/temp values was modified to better fit
the new hwmon API.
The patches work fine for my Dell Latitude C600, but i whould
appreciate someone testing the code on another model too.
Changes in v6:
- Make pwm1_enable permissions write-only
Sorry, guess I am missing something. Why ?
Guenter
pwm1_enable used SENSOR_DEVICE_ATTR_WO before the patch, so the file
permissions where 0200.
In the v5 patch series however, the file permission where not 0200, so i
changed that.
Is there a _reason_ for declaring this attribute write only, other than
"it used to be that way" ?
Guenter