aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/sisusbvga/sisusb.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-01-22 16:11:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-25 10:02:49 +0100
commit3af5d01c29c3285241d45739a945465e4a2b9740 (patch)
tree782f429ba32a5f543057c8045a3d0af6fe344aea /drivers/usb/misc/sisusbvga/sisusb.c
parentusb: ftdi-elan: remove a unnecessary variable 'empty_packets' (diff)
downloadlinux-dev-3af5d01c29c3285241d45739a945465e4a2b9740.tar.xz
linux-dev-3af5d01c29c3285241d45739a945465e4a2b9740.zip
usb: sisusb_con, convert addr macros to functions
Convert SISUSB_VADDR and SISUSB_HADDR to inline functions. Now, there are no more hidden accesses to local variables (vc_data and sisusb_usb_data). sisusb_haddr returns unsigned long from now on, not u16 *, as ulong is what every caller expects -- we can remove some casts. Call sites were aligned to be readable too. Use sisusb_haddr on 4 more places in sisusbcon_blank and sisusbcon_scroll. It was open coded there with [x, y] being [0, 0]. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc/sisusbvga/sisusb.c')
0 files changed, 0 insertions, 0 deletions