dm: serial: Remove setparity ops
authorPatrice Chotard <patrice.chotard@st.com>
Fri, 3 Aug 2018 13:07:40 +0000 (15:07 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 11 Sep 2018 00:20:38 +0000 (20:20 -0400)
setparity users has been updated to use new setconfig ops,
so we can safely remove setparity ops

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/serial.h

index 8b00f38..ffda48a 100644 (file)
@@ -182,16 +182,6 @@ struct dm_serial_ops {
         */
        int (*loop)(struct udevice *dev, int on);
 #endif
-       /**
-        * setparity() - Set up the parity
-        *
-        * Set up a new parity for this device.
-        *
-        * @dev: Device pointer
-        * @parity: parity to use
-        * @return 0 if OK, -ve on error
-        */
-       int (*setparity)(struct udevice *dev, enum serial_par parity);
 
        /**
         * setconfig() - Set up the uart configuration