OSDN Git Service

aspeed: i2c: Migrate to registerfields API
authorJoe Komlodi <komlodi@google.com>
Mon, 13 Jun 2022 12:05:48 +0000 (14:05 +0200)
committerCédric Le Goater <clg@kaod.org>
Wed, 22 Jun 2022 07:49:34 +0000 (09:49 +0200)
commit3be3d6ccf2adbc305645d097fb364753e11edb0f
treeccd062868d613c7325a145f1b54c1506ef2e5833
parent4a71d6d32e59ecf02c246037198882e59894db3d
aspeed: i2c: Migrate to registerfields API

This cleans up some of the field accessing, setting, and clearing
bitwise operations, and wraps them in macros instead.

Signed-off-by: Joe Komlodi <komlodi@google.com>
Change-Id: I33018d6325fa04376e7c29dc4a49ab389a8e333a
Message-Id: <20220331043248.2237838-4-komlodi@google.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/i2c/aspeed_i2c.c