Skip to content

Commit

Permalink
fixup! power: supply: import a few xiaomi changes
Browse files Browse the repository at this point in the history
  • Loading branch information
David112x committed May 17, 2024
1 parent 2445c57 commit ee4ede9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/supply/qcom/pmic-voter.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ struct votable *create_votable(const char *name,
return ERR_PTR(-EEXIST);
}

votable->effective_val_ent = debugfs_create_file("effective_val",
votable->effective_val_ent = debugfs_create_u32("effective_val",
S_IFREG | 0644,
votable->root,
&(votable->effective_result));
Expand All @@ -858,7 +858,7 @@ struct votable *create_votable(const char *name,

votable->effective_client_ent = debugfs_create_file("effective_client",
S_IFREG | 0444,
votable->root,
votable->root, votable,
&effective_client_ops);
if (!votable->effective_client_ent) {
pr_err("Couldn't create effective_client dbg file for %s\n", name);
Expand Down
1 change: 1 addition & 0 deletions drivers/power/supply/qcom/qg-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct qg_batt_props {
int vbatt_full_mv;
int fastchg_curr_ma;
int qg_profile_version;
int nom_cap_uah;
};

struct qg_irq_info {
Expand Down

0 comments on commit ee4ede9

Please sign in to comment.