Re: [PATCH 26/38] iio: pressure-core: st: Clean-up probe() function

2013-09-14 Thread Jonathan Cameron
On 09/11/13 08:19, Lee Jones wrote: >>> err = st_sensors_init_sensor(indio_dev, plat_data); >>> if (err < 0) >>> - goto st_press_common_probe_error; >>> + return err; >>> >>> - if (pdata->get_irq_data_ready(indio_dev) > 0) { >>> + if (irq > 0) { >>> err =

Re: [PATCH 26/38] iio: pressure-core: st: Clean-up probe() function

2013-09-11 Thread Lee Jones
> > err = st_sensors_init_sensor(indio_dev, plat_data); > > if (err < 0) > >-goto st_press_common_probe_error; > >+return err; > > > >-if (pdata->get_irq_data_ready(indio_dev) > 0) { > >+if (irq > 0) { > > err = st_press_allocate_ring(indio_dev);

Re: [PATCH 26/38] iio: pressure-core: st: Clean-up probe() function

2013-09-10 Thread Jonathan Cameron
Lee Jones wrote: >This patch contains some pretty basic clean-ups in probe() pertaining >to >the simplification of error handling and a couple of readability >adaptions. > >Signed-off-by: Lee Jones >--- >drivers/iio/pressure/st_pressure_core.c | 32 > > 1 file cha

[PATCH 26/38] iio: pressure-core: st: Clean-up probe() function

2013-09-10 Thread Lee Jones
This patch contains some pretty basic clean-ups in probe() pertaining to the simplification of error handling and a couple of readability adaptions. Signed-off-by: Lee Jones --- drivers/iio/pressure/st_pressure_core.c | 32 1 file changed, 16 insertions(+), 16 de