lkml.org 
[lkml]   [2014]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 00/13 linux-next] drivers/tty: use container_of where possible
Date
Small patchset using container_of instead of casting on first structure member address.
All patches (cross)compiled but untested.


Fabian Frederick (13):
serial: use container_of to resolve uart_sio_port from uart_port
serial: sa1100: use container_of to resolve sa1100_port from uart_port
serial: use container_of to resolve uart_ip22zilog_port from uart_port
serial: mpsc: use container_of to resolve mpsc_port_info from
uart_port
serial: cpm_uart: use container_of to resolve uart_cpm_port from
uart_port
TTY: jsm: use container_of to resolve jsm_channel from uart_port
tty: use container_of to resolve uart_pmac_port from uart_port
serial: sunsu: use container_of to resolve uart_sunsu_port from
uart_port
serial: sunsab: use container_of to resolve uart_sunsu_port from
uart_port
serial: amba-pl010: use container_of to resolve uart_amba_port from
uart_port
serial: pnx8xxx: use container_of to resolve pnx8xxx_port from
uart_port
serial: use container_of to resolve uart_sunzilog_port from uart_port
tty: ar933x_uart: use container_of to resolve ar933x_uart_port from
uart_port

drivers/tty/serial/amba-pl010.c | 36 ++++++++++++++--------
drivers/tty/serial/ar933x_uart.c | 30 ++++++++++++------
drivers/tty/serial/cpm_uart/cpm_uart_core.c | 48 +++++++++++++++++++----------
drivers/tty/serial/ip22zilog.c | 18 +++++++----
drivers/tty/serial/jsm/jsm_tty.c | 30 ++++++++++++------
drivers/tty/serial/m32r_sio.c | 42 ++++++++++++++++---------
drivers/tty/serial/mpsc.c | 39 +++++++++++++++--------
drivers/tty/serial/pmac_zilog.c | 9 ++++--
drivers/tty/serial/pnx8xxx_uart.c | 48 +++++++++++++++++++----------
drivers/tty/serial/sa1100.c | 45 ++++++++++++++++++---------
drivers/tty/serial/sunsab.c | 36 ++++++++++++++--------
drivers/tty/serial/sunsu.c | 39 +++++++++++++++--------
drivers/tty/serial/sunzilog.c | 24 ++++++++++-----
13 files changed, 296 insertions(+), 148 deletions(-)

--
1.9.1



\
 
 \ /
  Last update: 2014-10-05 19:41    [W:0.773 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site