]> www.infradead.org Git - users/jedix/linux-maple.git/commit
misc: amd-sbi: Use regmap subsystem
authorAkshay Gupta <akshay.gupta@amd.com>
Mon, 28 Apr 2025 06:30:28 +0000 (06:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 12:44:40 +0000 (14:44 +0200)
commit013f7e7131bd84a83ed3b70855b2667a89bb3c98
treea111ea1876494c87ba06e5e07959097ada7ac150
parentf4dc6406631ec46f608be7078f50777990c87b47
misc: amd-sbi: Use regmap subsystem

- regmap subsystem provides multiple benefits over direct smbus APIs
- subsystem adds another abstraction layer on top of struct i2c_client to
  make it easy to read or write registers.
- The subsystem can be helpful in following cases
  - Different types of bus (i2c/i3c), we have plans to support i3c.
  - Different Register address size (1byte/2byte)

Reviewed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Akshay Gupta <akshay.gupta@amd.com>
Link: https://lore.kernel.org/r/20250428063034.2145566-5-akshay.gupta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/amd-sbi/rmi-core.c
drivers/misc/amd-sbi/rmi-core.h
drivers/misc/amd-sbi/rmi-i2c.c