Re: [PATCH v2] i2c: mux: remove duplicated i2c_algorithm

2018-10-01 Thread Peter Rosin
On 2018-09-27 15:38, Luca Ceresoli wrote: > From: Luca Ceresoli > > i2c-mux instantiates one i2c_algorithm for each downstream adapter. > However these algorithms are all identical, depending only on the > parent adapter. > > Avoid duplication by hoisting the i2c_algorithm from the adapters to >

[PATCH v2] i2c: mux: remove duplicated i2c_algorithm

2018-09-27 Thread Luca Ceresoli
From: Luca Ceresoli i2c-mux instantiates one i2c_algorithm for each downstream adapter. However these algorithms are all identical, depending only on the parent adapter. Avoid duplication by hoisting the i2c_algorithm from the adapters to the i2c_mux_core object, and reuse it in all the adapters