*/
static int dln2_spi_enable(struct dln2_spi *dln2, bool enable)
{
- int ret;
u16 cmd;
struct {
u8 port;
cmd = DLN2_SPI_DISABLE;
}
- ret = dln2_transfer_tx(dln2->pdev, cmd, &tx, len);
- if (ret < 0)
- return ret;
-
- return 0;
+ return dln2_transfer_tx(dln2->pdev, cmd, &tx, len);
}
/*
dln2->bpw = bpw;
}
- ret = dln2_spi_enable(dln2, true);
- if (ret < 0)
- return ret;
-
- return 0;
+ return dln2_spi_enable(dln2, true);
}
static int dln2_spi_transfer_one(struct spi_master *master,
return dln2_spi_enable(dln2, true);
}
-#endif /* CONFIG_PM_RUNTIME */
+#endif /* CONFIG_PM */
static const struct dev_pm_ops dln2_spi_pm = {
SET_SYSTEM_SLEEP_PM_OPS(dln2_spi_suspend, dln2_spi_resume)