Re: [PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-11-03 Thread Jonathan Cameron
On Fri, 2 Nov 2018 10:59:06 -0300 Matheus Tavares wrote: > On 10/28/18 1:43 PM, Jonathan Cameron wrote: > > On Fri, 26 Oct 2018 23:00:01 -0300 > > Matheus Tavares wrote: > > > >> Previously, ad2s90_probe ignored the return code from spi_setup, not > >> handling its possible failure. This

Re: [PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-11-03 Thread Jonathan Cameron
On Fri, 2 Nov 2018 10:59:06 -0300 Matheus Tavares wrote: > On 10/28/18 1:43 PM, Jonathan Cameron wrote: > > On Fri, 26 Oct 2018 23:00:01 -0300 > > Matheus Tavares wrote: > > > >> Previously, ad2s90_probe ignored the return code from spi_setup, not > >> handling its possible failure. This

Re: [PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-11-02 Thread Matheus Tavares
On 10/28/18 1:43 PM, Jonathan Cameron wrote: On Fri, 26 Oct 2018 23:00:01 -0300 Matheus Tavares wrote: Previously, ad2s90_probe ignored the return code from spi_setup, not handling its possible failure. This patch makes ad2s90_probe check if the code is an error code and, if so, do the

Re: [PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-11-02 Thread Matheus Tavares
On 10/28/18 1:43 PM, Jonathan Cameron wrote: On Fri, 26 Oct 2018 23:00:01 -0300 Matheus Tavares wrote: Previously, ad2s90_probe ignored the return code from spi_setup, not handling its possible failure. This patch makes ad2s90_probe check if the code is an error code and, if so, do the

Re: [PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-10-28 Thread Jonathan Cameron
On Fri, 26 Oct 2018 23:00:01 -0300 Matheus Tavares wrote: > Previously, ad2s90_probe ignored the return code from spi_setup, not > handling its possible failure. This patch makes ad2s90_probe check if > the code is an error code and, if so, do the following: > > - Call dev_err with an

Re: [PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-10-28 Thread Jonathan Cameron
On Fri, 26 Oct 2018 23:00:01 -0300 Matheus Tavares wrote: > Previously, ad2s90_probe ignored the return code from spi_setup, not > handling its possible failure. This patch makes ad2s90_probe check if > the code is an error code and, if so, do the following: > > - Call dev_err with an

[PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-10-26 Thread Matheus Tavares
Previously, ad2s90_probe ignored the return code from spi_setup, not handling its possible failure. This patch makes ad2s90_probe check if the code is an error code and, if so, do the following: - Call dev_err with an appropriate error message. - Return the spi_setup's error code, aborting the

[PATCH v2 2/6] staging:iio:ad2s90: Make probe handle spi_setup failure

2018-10-26 Thread Matheus Tavares
Previously, ad2s90_probe ignored the return code from spi_setup, not handling its possible failure. This patch makes ad2s90_probe check if the code is an error code and, if so, do the following: - Call dev_err with an appropriate error message. - Return the spi_setup's error code, aborting the