Skip to contentSkip to conversation

ASoc : cs42xx8 : merge cs42xx8-i2c.c into cs42xx8.c

DISCUSSION Matt Flax 3 participants 4 messages May 16, 2019

lore
Share & tools
lore
#1 lore raw

Hi Matt,

Quoted 2 lines · Matt Flax

Do you think it would be a good idea to merge cs42xx8-i2c.c into cs42xx8.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.

#2 lore raw
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.

author
#3 lore raw
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.