OSDN Git Service

serial: sh-sci: Replace struct sci_port_info by type/regtype encoding
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 10 Nov 2015 15:09:23 +0000 (16:09 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:18:47 +0000 (11:18 +0100)
commitbd2238fb84df6054d966364d07e0414b54ef8e19
tree46fcbb02074a0c681f2566c9e3cbaa856710ed26
parentb8bbd6b2923279f1c9c74d59638b38a1eace78e8
serial: sh-sci: Replace struct sci_port_info by type/regtype encoding

Store the encoded port and register types directly in of_device_id.data,
instead of using a pointer to a structure.
This saves memory and simplifies the source code, especially when adding
more compatible entries later.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c