ASoc : cs42xx8 : merge cs42xx8-i2c.c into cs42xx8.c
Do you think it would be a good idea to merge cs42xx8-i2c.c into cs42xx8.c ?
Is there a reason to keep these two related driver functions separate ?
Here is their source code :
https://github.com/torvalds/linux/blob/master/sound/soc/codecs/cs42xx8-i2c.c
https://github.com/torvalds/linux/blob/master/sound/soc/codecs/cs42xx8.c
Matt
Hi Matt,
Quoted 2 lines · Matt Flax
Do you think it would be a good idea to merge
cs42xx8-i2c.cintocs42xx8.c?
I think it is fine to keep this separate. The i2c code is clean and easy to understand.
Quoted 4 lines
Is there a reason to keep these two related driver functions separate ?
cs42xxx codec has also an SPI interface. If anyone wants to implement support for that it would be easier with the current split.
thanks,
Daniel.
Quoted 7 lines · Daniel Baluta
Quoted 2 lines · Matt Flax
Is there a reason to keep these two related driver functions separate ?
cs42xxx codec has also an SPI interface. If anyone wants to implement support for that it would be easier with the current split.
Right, that's the reason for the split - the split would need to be redone if anyone wants to add SPI support.
Quoted 9 lines · Mark Brown
Quoted 5 lines · Daniel Baluta
Quoted 2 lines · Matt Flax
Is there a reason to keep these two related driver functions separate ?
cs42xxx codec has also an SPI interface. If anyone wants to implement support for that it would be easier with the current split.
Right, that's the reason for the split - the split would need to be redone if anyone wants to add SPI support.
OK, make sense.