serial: max3100: Extract to_max3100_port() helper macro
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 9 Apr 2024 14:45:54 +0000 (17:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 15:04:53 +0000 (17:04 +0200)
commit69b2cc30315ac48e3a6308a7f736f67c3e3db0b1
treebc331cc73462c54295b7b9a221705b2c9eb42859
parent1d01740efb6856cf02905a84bf04b70d223993c2
serial: max3100: Extract to_max3100_port() helper macro

Instead of using container_of() explicitly, introduce a helper macro.
This saves a lot of lines of code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20240409144721.638326-8-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max3100.c