i2c: wmt: split out common files
authorHans Hu <hanshu-oc@zhaoxin.com>
Mon, 8 Apr 2024 02:54:44 +0000 (10:54 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:56:42 +0000 (00:56 +0200)
commit5acd48fa72ad16b824a9117254ce48ed69c914e8
tree2e68c6d81023765ad0c3deb0150508f5740c7627
parent8525205fd51f543cdf92f6c9aa65a9720cda9513
i2c: wmt: split out common files

Since the I2C IP of both wmt and zhaoxin originates from VIA,
it is better to separate the common code first.
The common driver is named as i2c-viai2c-common.c.
Old i2c-wmt.c renamed to i2c-viai2c-wmt.c.

The MAINTAINERS file will be updated accordingly in upcoming commits.

Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Hans Hu <hanshu-oc@zhaoxin.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
MAINTAINERS
drivers/i2c/busses/Makefile
drivers/i2c/busses/i2c-viai2c-common.c [new file with mode: 0644]
drivers/i2c/busses/i2c-viai2c-common.h [new file with mode: 0644]
drivers/i2c/busses/i2c-viai2c-wmt.c [new file with mode: 0644]
drivers/i2c/busses/i2c-wmt.c [deleted file]