pps: access pps device by direct pointer
Using device index as a pointer needs some unnecessary work to be done every time the pointer is needed (in irq handler for example). Using a direct pointer is much more easy (and safe as well). Signed-off-by:Alexander Gordeev <lasaine@lvk.cs.msu.su> Acked-by:
Rodolfo Giometti <giometti@linux.it> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- drivers/pps/clients/pps-ktimer.c 13 additions, 17 deletionsdrivers/pps/clients/pps-ktimer.c
- drivers/pps/clients/pps-ldisc.c 26 additions, 15 deletionsdrivers/pps/clients/pps-ldisc.c
- drivers/pps/kapi.c 28 additions, 96 deletionsdrivers/pps/kapi.c
- drivers/pps/pps.c 6 additions, 16 deletionsdrivers/pps/pps.c
- include/linux/pps_kernel.h 9 additions, 14 deletionsinclude/linux/pps_kernel.h
Please register or sign in to comment