Commit 9d1d994d authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Greg Kroah-Hartman

linux/serdev.h: Replace 'ctrl->serdev' with 'serdev'

Replace 'ctrl->serdev' with 'serdev' in serdev_controller_write_wakeup()
and serdev_controller_receive_buf().

Cc: Rob Herring <robh@kernel.org>
Cc: cphealy@gmail.com
Cc: linux-serial@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0dcc0542
...@@ -165,7 +165,7 @@ static inline void serdev_controller_write_wakeup(struct serdev_controller *ctrl ...@@ -165,7 +165,7 @@ static inline void serdev_controller_write_wakeup(struct serdev_controller *ctrl
if (!serdev || !serdev->ops->write_wakeup) if (!serdev || !serdev->ops->write_wakeup)
return; return;
serdev->ops->write_wakeup(ctrl->serdev); serdev->ops->write_wakeup(serdev);
} }
static inline int serdev_controller_receive_buf(struct serdev_controller *ctrl, static inline int serdev_controller_receive_buf(struct serdev_controller *ctrl,
...@@ -177,7 +177,7 @@ static inline int serdev_controller_receive_buf(struct serdev_controller *ctrl, ...@@ -177,7 +177,7 @@ static inline int serdev_controller_receive_buf(struct serdev_controller *ctrl,
if (!serdev || !serdev->ops->receive_buf) if (!serdev || !serdev->ops->receive_buf)
return -EINVAL; return -EINVAL;
return serdev->ops->receive_buf(ctrl->serdev, data, count); return serdev->ops->receive_buf(serdev, data, count);
} }
#if IS_ENABLED(CONFIG_SERIAL_DEV_BUS) #if IS_ENABLED(CONFIG_SERIAL_DEV_BUS)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment