Re: [PATCH v2 1/4] mfd: lpc_sch: reduce duplicate code and improve manageability

2014-09-02 Thread Lee Jones
On Tue, 02 Sep 2014, Andy Shevchenko wrote: > This patch refactors the driver to use helper functions instead of > copy'n'pasted pieces of code. > > It also introduces an additional struct to hold a chipset info. The chipset > info will be used to store features that are supported by specific

[PATCH v2 1/4] mfd: lpc_sch: reduce duplicate code and improve manageability

2014-09-02 Thread Andy Shevchenko
This patch refactors the driver to use helper functions instead of copy'n'pasted pieces of code. It also introduces an additional struct to hold a chipset info. The chipset info will be used to store features that are supported by specific processor or chipset. LPC_SCH supports SMBUS, GPIO and

[PATCH v2 1/4] mfd: lpc_sch: reduce duplicate code and improve manageability

2014-09-02 Thread Andy Shevchenko
This patch refactors the driver to use helper functions instead of copy'n'pasted pieces of code. It also introduces an additional struct to hold a chipset info. The chipset info will be used to store features that are supported by specific processor or chipset. LPC_SCH supports SMBUS, GPIO and

Re: [PATCH v2 1/4] mfd: lpc_sch: reduce duplicate code and improve manageability

2014-09-02 Thread Lee Jones
On Tue, 02 Sep 2014, Andy Shevchenko wrote: This patch refactors the driver to use helper functions instead of copy'n'pasted pieces of code. It also introduces an additional struct to hold a chipset info. The chipset info will be used to store features that are supported by specific