Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1702387
| From | Stephen Warren <swarren@wwwdotorg.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/2] i2c: mux: pinctrl: drop the idle_state member |
| Date | 2017-08-02 21:20 +0200 |
| Message-ID | <ua7lv-5EM-11@gated-at.bofh.it> (permalink) |
| References | <ua7lv-5EM-13@gated-at.bofh.it> <ua7lv-5EM-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 08/02/2017 01:27 AM, Peter Rosin wrote:
> The information is available elsewhere.
> diff --git a/drivers/i2c/muxes/i2c-mux-pinctrl.c b/drivers/i2c/muxes/i2c-mux-pinctrl.c
> static int i2c_mux_pinctrl_deselect(struct i2c_mux_core *muxc, u32 chan)
> {
> + return i2c_mux_pinctrl_select(muxc, muxc->num_adapters);
> }
> @@ -166,7 +162,7 @@ static int i2c_mux_pinctrl_probe(struct platform_device *pdev)
> /* Do not add any adapter for the idle state (if it's there at all). */
> - for (i = 0; i < num_names - !!mux->state_idle; i++) {
> + for (i = 0; i < num_names - !!muxc->deselect; i++) {
I think that "num_names - !!muxc->deselect" could just be
muxc->num_adapters? Otherwise,
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 2/2] i2c: mux: pinctrl: drop the idle_state member Stephen Warren <swarren@wwwdotorg.org> - 2017-08-02 21:20 +0200
Re: [PATCH 2/2] i2c: mux: pinctrl: drop the idle_state member Stephen Warren <swarren@wwwdotorg.org> - 2017-08-03 01:00 +0200
Re: [PATCH 2/2] i2c: mux: pinctrl: drop the idle_state member Stephen Warren <swarren@wwwdotorg.org> - 2017-08-03 23:50 +0200
csiph-web