drivers: fdc2x1x: Fix compilation error
When CONFIG_PM_DEVICE is enabled, the FDC2x1x driver includes code that doesn't access the name of the shutdown pin's GPIO port correctly. Correct this so the code derefences the right struct members. Signed-off-by: Tristan Honscheid <honscheid@google.com>
This commit is contained in:
parent
4ac8000bf2
commit
f119d5341a
1 changed files with 1 additions and 1 deletions
|
@ -516,7 +516,7 @@ static int fdc2x1x_device_pm_action(const struct device *dev,
|
|||
|
||||
break;
|
||||
case PM_DEVICE_ACTION_TURN_OFF:
|
||||
if (cfg->sd_gpio->port.name) {
|
||||
if (cfg->sd_gpio.port->name) {
|
||||
ret = fdc2x1x_set_shutdown(dev, true);
|
||||
} else {
|
||||
LOG_ERR("SD pin not defined");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue