April 2022
Beginner to intermediate
708 pages
14h 54m
English
Before the Regmap API was developed, there was redundant code for the device drivers dealing with SPI, I2C, or memory-mapped devices. Many of these drivers contained some very similar code for accessing hardware device registers.
The following figure shows how SPI, I2C, and memory-mapped related APIs were used standalone before Regmap was introduced:
Figure 12.1 – I2C, SPI, and memory-mapped access before Regmap
The Regmap API was introduced in version v3.1 of the Linux kernel and proposes a solution that factors out and unifies these similar ...