summaryrefslogtreecommitdiffstats
path: root/drivers/block/aoe
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-05 02:48:38 +0200
committerJens Axboe <axboe@kernel.dk>2017-11-15 04:11:57 +0100
commitcbb9d17875d059aa5665a854fafeff922e7a7938 (patch)
tree76387a41d05e989a041700698584f49ebdfb48bc /drivers/block/aoe
parentblock/floppy: Convert callback to pass timer_list (diff)
downloadlinux-cbb9d17875d059aa5665a854fafeff922e7a7938.tar.xz
linux-cbb9d17875d059aa5665a854fafeff922e7a7938.zip
amifloppy: Convert timers to use timer_setup()
This converts the amifloppy driver to pass the timer pointer to the callback instead of the drive number (and flags). It eliminates the decusagecounter flag, as it was unused, and drops the ininterrupt flag which appeared to be a needless optimization. The drive can then be calculated from the offset of the timer in the drive timer array. Additionally moves to a static data variable instead of the soon-to-be-gone timer->data field. Cc: Jens Axboe <axboe@kernel.dk> Cc: Krzysztof Halasa <khc@pm.waw.pl> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/aoe')
0 files changed, 0 insertions, 0 deletions