There's only a single caller of vexpress_config_set_master() from vexpress-sysreg.c. Let's just make the registers needed available to vexpress-config and move all the code there. The registers needed aren't used anywhere else either. With this, we can get rid of the private API between these 2 drivers.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -10,15 +10,6 @@ · 9 unmodified lines | ||
| 10 | 10 | #include <linux/device.h> |
| 11 | 11 | #include <linux/regmap.h> |
| 12 | 12 | |
| 13 | −#define VEXPRESS_SITE_MB 0 | |
| 14 | −#define VEXPRESS_SITE_DB1 1 | |
| 15 | −#define VEXPRESS_SITE_DB2 2 | |
| 16 | −#define VEXPRESS_SITE_MASTER 0xf | |
| 17 | − | |
| 18 | −/* Config infrastructure */ | |
| 19 | − | |
| 20 | −void vexpress_config_set_master(u32 site); | |
| 21 | − | |
| 22 | 13 | /* Config regmap API */ |
| 23 | 14 | |
| 24 | 15 | struct regmap *devm_regmap_init_vexpress_config(struct device *dev); |