serial: st-asc: Use generic DT binding for announcing RTS/CTS lines
authorLee Jones <lee.jones@linaro.org>
Fri, 3 Feb 2017 10:23:14 +0000 (10:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2017 08:47:52 +0000 (09:47 +0100)
The initial binding 'st,hw-flow-control' isn't used anywhere, in neither
in upstream nor downstream kernels.  It isn't even documented in
dt-bindings, so we can safely assume it's safe to swap to the generic
one.

Acked-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c

index e521078572b54b1171cc386d39c88ea8688cd138..bcf1d33e6ffe0b3cb9952e88046658df1358543b 100644 (file)
@@ -794,7 +794,7 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev)
                return NULL;
 
        asc_ports[id].hw_flow_control = of_property_read_bool(np,
-                                                       "st,hw-flow-control");
+                                                       "uart-has-rtscts");
        asc_ports[id].force_m1 =  of_property_read_bool(np, "st,force_m1");
        asc_ports[id].port.line = id;
        asc_ports[id].rts = NULL;