Re: [PATCH -next 6/7] platform/olpc: olpc-xo175-ec: switch to use spi_target_abort().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 9/10/24 4:26 AM, Yang Yingliang wrote:
> From: Yang Yingliang <yangyingliang@xxxxxxxxxx>
> 
> Switch to use modern name function spi_target_abort().
> 
> No functional changed.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Thanks, patch looks good to me.

Please merge this through the SPI tree together with the rest
of the series:

Acked-by: Hans de Goede <hdegoede@xxxxxxxxxx>

Regards,

Hans

> ---
>  drivers/platform/olpc/olpc-xo175-ec.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/platform/olpc/olpc-xo175-ec.c b/drivers/platform/olpc/olpc-xo175-ec.c
> index 62ccbcb15c74..fa7b3bda688a 100644
> --- a/drivers/platform/olpc/olpc-xo175-ec.c
> +++ b/drivers/platform/olpc/olpc-xo175-ec.c
> @@ -536,7 +536,7 @@ static int olpc_xo175_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *resp,
>  		dev_err(dev, "EC cmd error: timeout in STATE %d\n",
>  				priv->cmd_state);
>  		gpiod_set_value_cansleep(priv->gpio_cmd, 0);
> -		spi_slave_abort(priv->spi);
> +		spi_target_abort(priv->spi);
>  		olpc_xo175_ec_read_packet(priv);
>  		return -ETIMEDOUT;
>  	}
> @@ -653,7 +653,7 @@ static void olpc_xo175_ec_remove(struct spi_device *spi)
>  	if (pm_power_off == olpc_xo175_ec_power_off)
>  		pm_power_off = NULL;
>  
> -	spi_slave_abort(spi);
> +	spi_target_abort(spi);
>  
>  	platform_device_unregister(olpc_ec);
>  	olpc_ec = NULL;





[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux