mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
tty: serdev: convert to u8 and size_t
Switch character types to u8 and sizes to size_t. To conform to characters/sizes in the rest of the tty layer. This patch converts struct serdev_device_ops hooks and its instantiations. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Cc: Rob Herring <robh@kernel.org> Acked-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20231206073712.17776-24-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f2470d2bc4
commit
475fc6e2de
@@ -80,8 +80,8 @@ static const struct gnss_operations gnss_serial_gnss_ops = {
|
||||
.write_raw = gnss_serial_write_raw,
|
||||
};
|
||||
|
||||
static int gnss_serial_receive_buf(struct serdev_device *serdev,
|
||||
const unsigned char *buf, size_t count)
|
||||
static ssize_t gnss_serial_receive_buf(struct serdev_device *serdev,
|
||||
const u8 *buf, size_t count)
|
||||
{
|
||||
struct gnss_serial *gserial = serdev_device_get_drvdata(serdev);
|
||||
struct gnss_device *gdev = gserial->gdev;
|
||||
|
||||
@@ -160,8 +160,8 @@ static const struct gnss_operations sirf_gnss_ops = {
|
||||
.write_raw = sirf_write_raw,
|
||||
};
|
||||
|
||||
static int sirf_receive_buf(struct serdev_device *serdev,
|
||||
const unsigned char *buf, size_t count)
|
||||
static ssize_t sirf_receive_buf(struct serdev_device *serdev,
|
||||
const u8 *buf, size_t count)
|
||||
{
|
||||
struct sirf_data *data = serdev_device_get_drvdata(serdev);
|
||||
struct gnss_device *gdev = data->gdev;
|
||||
|
||||
Reference in New Issue
Block a user