Re: [PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
Am 2015-03-20 um 12:31 schrieb Varka Bhadram: > On 03/20/2015 04:50 PM, Martin Kepplinger wrote: >> From: Martin Kepplinger >> ( ...) >> +return 0; >> + >> + err_free_irq: >> +if (mma->irq) >> +free_irq(mma->irq, mma); >> + err_free_mem: >> +kfree(mma); > > If we use devm_*

Re: [PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Varka Bhadram
On 03/20/2015 04:50 PM, Martin Kepplinger wrote: From: Martin Kepplinger The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving

[PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
From: Martin Kepplinger The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving the host processor from continuously polling data,

Re: [PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Varka Bhadram
On 03/20/2015 04:50 PM, Martin Kepplinger wrote: From: Martin Kepplinger martin.kepplin...@theobroma-systems.com The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions

[PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
From: Martin Kepplinger martin.kepplin...@theobroma-systems.com The MMA8653FC is a low-power, three-axis, capacitive micromachined accelerometer with 10 bits of resolution with flexible user-programmable options. Embedded interrupt functions enable overall power savings, by relieving the host

Re: [PATCH v4] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-20 Thread Martin Kepplinger
Am 2015-03-20 um 12:31 schrieb Varka Bhadram: On 03/20/2015 04:50 PM, Martin Kepplinger wrote: From: Martin Kepplinger martin.kepplin...@theobroma-systems.com ( ...) +return 0; + + err_free_irq: +if (mma-irq) +free_irq(mma-irq, mma); + err_free_mem: +kfree(mma); If