]> git.baikalelectronics.ru Git - kernel.git/commit
Input: hilkbd - Add casts to HP9000/300 I/O accessors
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 2 Jul 2018 11:55:50 +0000 (13:55 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 29 Jul 2018 08:48:18 +0000 (10:48 +0200)
commit0a80f18c357b0409d68c18ad77ead1478b57fa55
tree795d13818499ff509ea7669b0191631705a6dd4a
parent0c2437c5f2589b3cff0c75ac0ff58782ad90a078
Input: hilkbd - Add casts to HP9000/300 I/O accessors

Internally, hilkbd uses "unsigned long" I/O addresses everywhere.
This works fine as:
  - On PA-RISC, hilkbd uses the gsc_{read,write}b() I/O accessors, which
    take "unsigned long" addresses,
  - On m68k, hilkbd uses {read,write}b(), which are currently mapped to
    {in,out}_8(), and convert the passed addresses to pointers
    internally.

However, the asm-generic version of {read,write}b() does not perform
such conversions, and requires passing pointers instead.  Hence add
casts to prepare for switching m68k to the asm-generic version.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@linux-m68k.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/hilkbd.c