Re: [PATCH 3/3] soundwire: add Slave sysfs support

2020-05-20 Thread Vinod Koul
On 19-05-20, 04:35, Bard Liao wrote: > +int sdw_slave_sysfs_init(struct sdw_slave *slave) > +{ > + int ret; > + > + ret = devm_device_add_groups(&slave->dev, slave_groups); > + if (ret < 0) > + return ret; > + > + ret = devm_device_add_group(&slave->dev, &sdw_slave_dev_

Re: [PATCH 3/3] soundwire: add Slave sysfs support

2020-05-19 Thread Greg KH
On Tue, May 19, 2020 at 04:35:51AM +0800, Bard Liao wrote: > From: Pierre-Louis Bossart > > Expose MIPI DisCo Slave properties in sysfs. > > For Slave properties and Data Port 0, the attributes are managed with > simple devm_ support. > > A Slave Device may have more than one Data Port (DPN), a

[PATCH 3/3] soundwire: add Slave sysfs support

2020-05-19 Thread Bard Liao
From: Pierre-Louis Bossart Expose MIPI DisCo Slave properties in sysfs. For Slave properties and Data Port 0, the attributes are managed with simple devm_ support. A Slave Device may have more than one Data Port (DPN), and each Data Port can be sink or source. The attributes are created dynamic