Re: [PATCH] drivers/ata: cleanup creation of device sysfs attribute

2019-06-08 Thread Christoph Hellwig
On Fri, Jun 07, 2019 at 10:34:46AM +0300, Konstantin Khlebnikov wrote: > This patch merges common ATA and AHCI specific attribute "sw_activity" > into one group with ->is_visible() method which hides attributes if > feature is not supported by hardware. > > This allows to add all attributes in one

[PATCH] drivers/ata: cleanup creation of device sysfs attribute

2019-06-07 Thread Konstantin Khlebnikov
This patch merges common ATA and AHCI specific attribute "sw_activity" into one group with ->is_visible() method which hides attributes if feature is not supported by hardware. This allows to add all attributes in one place without exporting each piece for linking into another list in ahci module.