Re: [PATCH 2/9] tty: remove tty_struct dependency in tty flag macros
From: Rob Herring
Date: Fri Sep 09 2016 - 21:03:16 EST
On Fri, Sep 9, 2016 at 5:37 PM, Rob Herring <robh@xxxxxxxxxx> wrote:
> In preparation to support tty drivers having only a tty_port and
> possibly not a tty_struct, convert all the termios flag macros to take a
> termios ptr instead of the tty_struct ptr. After this change drivers can
> be converted to support a termios struct other than tty->termios.
[...]
> diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c
> index 832cbd647145..e5d7e4db6bdc 100644
> --- a/drivers/dma/at_xdmac.c
> +++ b/drivers/dma/at_xdmac.c
> @@ -560,7 +560,7 @@ static int at_xdmac_compute_chan_conf(struct dma_chan *chan,
> dev_err(chan2dev(chan), "invalid src maxburst value\n");
> return -EINVAL;
> }
> - atchan->cfg |= AT_XDMAC_CC_CSIZE(csize);
> + atchan->cfg |= AT_XDMAC_CC_CSIZE(&csize->termios);
> dwidth = ffs(atchan->sconfig.src_addr_width) - 1;
> if (dwidth < 0) {
> dev_err(chan2dev(chan), "invalid src addr width value\n");
> @@ -583,7 +583,7 @@ static int at_xdmac_compute_chan_conf(struct dma_chan *chan,
> dev_err(chan2dev(chan), "invalid src maxburst value\n");
> return -EINVAL;
> }
> - atchan->cfg |= AT_XDMAC_CC_CSIZE(csize);
> + atchan->cfg |= AT_XDMAC_CC_CSIZE(&csize->termios);
> dwidth = ffs(atchan->sconfig.dst_addr_width) - 1;
> if (dwidth < 0) {
> dev_err(chan2dev(chan), "invalid dst addr width value\n");
This file needs to be dropped. There were a few false matches and I
missed this one.
Rob