RFC PATCH sysfs names: fscher: remove revision

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

 



Hi Grant,

> fscher exposes chip revision to user-space, but does not use it 
> internally, this patch removes revision filename

I am in favor of this change, with two minor objections:

1* Maybe you could add an info printk saying "fscher: Found FSC Hermes
chip, revision %d", like the it87 driver does for example. That way,
people still get to know the revision of the chip if it should ever
matter.

2*
>  static void fscher_init_client(struct i2c_client *client)
>  {
> -	struct fscher_data *data = i2c_get_clientdata(client);
>  
> -	/* Read revision from chip */
> -	data->revision =  fscher_read_value(client, FSCHER_REG_REVISION);
>  }

This function can obviously go away altogether now. Empty static
functions are not that useful.

Thanks,
-- 
Jean Delvare



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux