serial: max310x: add I2C device table for instantiation from userspace
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Thu, 18 Jan 2024 15:21:58 +0000 (10:21 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jan 2024 03:05:03 +0000 (19:05 -0800)
commit60a389a5c82bc75894cb5568fdb5feb138b91c73
tree7d1b7b652dfcb56036ae338aaf785d5927a1a929
parent0d27056c24efd3d63a03f3edfbcfc4827086b110
serial: max310x: add I2C device table for instantiation from userspace

This allows to instantiate a max14830 I2C device from userspace.

Helpful when testing driver with i2c-stub.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20240118152213.2644269-3-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c