mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: core: Rename the priv/plat members
These are supposed to be private to driver model, not accessed by any code outside. Add a trailing underscore to indicate this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
89ba6d5535
commit
fb8c9fb3fa
4 changed files with 33 additions and 28 deletions
|
@ -24,7 +24,7 @@
|
|||
* There may be drivers for on-chip SoC GPIO banks, I2C GPIO expanders and
|
||||
* PMIC IO lines, all made available in a unified way through the uclass.
|
||||
*
|
||||
* @priv: Private data for this uclass
|
||||
* @priv_: Private data for this uclass (do not access outside driver model)
|
||||
* @uc_drv: The driver for the uclass itself, not to be confused with a
|
||||
* 'struct driver'
|
||||
* @dev_head: List of devices in this uclass (devices are attached to their
|
||||
|
@ -32,7 +32,7 @@
|
|||
* @sibling_node: Next uclass in the linked list of uclasses
|
||||
*/
|
||||
struct uclass {
|
||||
void *priv;
|
||||
void *priv_;
|
||||
struct uclass_driver *uc_drv;
|
||||
struct list_head dev_head;
|
||||
struct list_head sibling_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue