Re: [PATCH 2/9] tty: remove tty_struct dependency in tty flag macros

From
Rob Herring <robh@kernel.org>
Date
2016-09-10 01:03:06
Also in
lkml
Reply to
Rob Herring, 2016-09-09
On Fri, Sep 9, 2016 at 5:37 PM, Rob Herring [off-list ref] 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.
[...]
quoted hunk ↗ jump to hunk
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
Thread (18 messages) 18 messages, 3 authors, last reply 2016-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help