Skip to content

Commit

Permalink
Fix driver
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed Jun 25, 2024
1 parent 756cde9 commit bfd4fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openemc-driver/openemc_supply.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static ssize_t openemc_supply_connect_data_show(struct device *dev,
struct device_attribute *attr,
char *buf)
{
struct openemc_supply *sup = dev_get_drvdata(dev->parent);
struct openemc_supply *sup = dev_get_drvdata(dev);
int ret;
u8 connect;

Expand All @@ -199,7 +199,7 @@ static ssize_t openemc_supply_connect_data_store(struct device *dev,
struct device_attribute *attr,
const char *buf, size_t count)
{
struct openemc_supply *sup = dev_get_drvdata(dev->parent);
struct openemc_supply *sup = dev_get_drvdata(dev);
u8 connect;
int ret;

Expand Down

0 comments on commit bfd4fcc

Please sign in to comment.