All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] Unify i2c_mux_add_adapter error reporting
@ 2017-04-03  8:38 ` Peter Rosin
  0 siblings, 0 replies; 33+ messages in thread
From: Peter Rosin @ 2017-04-03  8:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Rosin, Wolfram Sang, Peter Korsgaard, Guenter Roeck,
	Linus Walleij, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler,
	Mauro Carvalho Chehab, linux-i2c, linux-iio, linux-media

Hi!

Many users of the i2c_mux_add_adapter interface log a message
on failure, but the function already logs such a message. One
or two of those users actually add more information than already
provided by the central failure message.

So, first fix the central error reporting to provide as much
information as any current user, and then remove the surplus
error reporting at the call sites.

Cheers,
peda

Peter Rosin (9):
  i2c: mux: provide more info on failure in i2c_mux_add_adapter
  i2c: arb: gpio-challenge: stop double error reporting
  i2c: mux: gpio: stop double error reporting
  i2c: mux: pca9541: stop double error reporting
  i2c: mux: pca954x: stop double error reporting
  i2c: mux: pinctrl: stop double error reporting
  i2c: mux: reg: stop double error reporting
  iio: gyro: mpu3050: stop double error reporting
  [media] cx231xx: stop double error reporting

 drivers/i2c/i2c-mux.c                      |  9 ++++++---
 drivers/i2c/muxes/i2c-arb-gpio-challenge.c |  4 +---
 drivers/i2c/muxes/i2c-mux-gpio.c           |  4 +---
 drivers/i2c/muxes/i2c-mux-pca9541.c        |  4 +---
 drivers/i2c/muxes/i2c-mux-pca954x.c        |  7 +------
 drivers/i2c/muxes/i2c-mux-pinctrl.c        |  4 +---
 drivers/i2c/muxes/i2c-mux-reg.c            |  4 +---
 drivers/iio/gyro/mpu3050-i2c.c             |  5 ++---
 drivers/media/usb/cx231xx/cx231xx-i2c.c    | 15 ++++-----------
 9 files changed, 18 insertions(+), 38 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2017-04-19 10:29 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03  8:38 [PATCH 0/9] Unify i2c_mux_add_adapter error reporting Peter Rosin
2017-04-03  8:38 ` Peter Rosin
2017-04-03  8:38 ` [PATCH 1/9] i2c: mux: provide more info on failure in i2c_mux_add_adapter Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 2/9] i2c: arb: gpio-challenge: stop double error reporting Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 3/9] i2c: mux: gpio: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 4/9] i2c: mux: pca9541: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 5/9] i2c: mux: pca954x: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 6/9] i2c: mux: pinctrl: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 7/9] i2c: mux: reg: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03  8:38 ` [PATCH 8/9] iio: gyro: mpu3050: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03 17:56   ` Linus Walleij
2017-04-03 19:42     ` Jonathan Cameron
2017-04-03  8:38 ` [PATCH 9/9] [media] cx231xx: " Peter Rosin
2017-04-03  8:38   ` Peter Rosin
2017-04-03 10:26   ` Wolfram Sang
2017-04-03 11:13     ` Peter Rosin
2017-04-03 11:13       ` Peter Rosin
2017-04-03 10:27 ` [PATCH 0/9] Unify i2c_mux_add_adapter " Wolfram Sang
2017-04-03 10:27   ` Wolfram Sang
2017-04-03 11:27   ` Peter Rosin
2017-04-03 11:27     ` Peter Rosin
2017-04-19 10:29     ` Mauro Carvalho Chehab
2017-04-19 10:29       ` Mauro Carvalho Chehab
2017-04-11  8:08 ` Peter Rosin
2017-04-11  8:08   ` Peter Rosin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.