drivers: ssd16xx: Removed blanking support
Removed blanking_on and blanking_off support from SSD16XX driver as it is not supported. Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
parent
42d1899087
commit
00d6fe49b2
1 changed files with 6 additions and 22 deletions
|
@ -223,30 +223,14 @@ static void ssd16xx_set_orientation_internall(struct ssd16xx_data *driver)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int ssd16xx_resume(const struct device *dev)
|
static int ssd16xx_blanking_off(const struct device *dev)
|
||||||
{
|
{
|
||||||
struct ssd16xx_data *driver = dev->driver_data;
|
return -ENOTSUP;
|
||||||
u8_t tmp;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Uncomment for voltage measurement
|
|
||||||
* tmp = SSD16XX_CTRL2_ENABLE_CLK;
|
|
||||||
* ssd16xx_write_cmd(SSD16XX_CMD_UPDATE_CTRL2, &tmp, sizeof(tmp));
|
|
||||||
* ssd16xx_write_cmd(SSD16XX_CMD_MASTER_ACTIVATION, NULL, 0);
|
|
||||||
*/
|
|
||||||
|
|
||||||
tmp = SSD16XX_SLEEP_MODE_PON;
|
|
||||||
return ssd16xx_write_cmd(driver, SSD16XX_CMD_SLEEP_MODE,
|
|
||||||
&tmp, sizeof(tmp));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ssd16xx_suspend(const struct device *dev)
|
static int ssd16xx_blanking_on(const struct device *dev)
|
||||||
{
|
{
|
||||||
struct ssd16xx_data *driver = dev->driver_data;
|
return -ENOTSUP;
|
||||||
u8_t tmp = SSD16XX_SLEEP_MODE_DSM;
|
|
||||||
|
|
||||||
return ssd16xx_write_cmd(driver, SSD16XX_CMD_SLEEP_MODE,
|
|
||||||
&tmp, sizeof(tmp));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ssd16xx_update_display(const struct device *dev)
|
static int ssd16xx_update_display(const struct device *dev)
|
||||||
|
@ -655,8 +639,8 @@ static int ssd16xx_init(struct device *dev)
|
||||||
static struct ssd16xx_data ssd16xx_driver;
|
static struct ssd16xx_data ssd16xx_driver;
|
||||||
|
|
||||||
static struct display_driver_api ssd16xx_driver_api = {
|
static struct display_driver_api ssd16xx_driver_api = {
|
||||||
.blanking_on = ssd16xx_resume,
|
.blanking_on = ssd16xx_blanking_on,
|
||||||
.blanking_off = ssd16xx_suspend,
|
.blanking_off = ssd16xx_blanking_off,
|
||||||
.write = ssd16xx_write,
|
.write = ssd16xx_write,
|
||||||
.read = ssd16xx_read,
|
.read = ssd16xx_read,
|
||||||
.get_framebuffer = ssd16xx_get_framebuffer,
|
.get_framebuffer = ssd16xx_get_framebuffer,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue