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:
Jan Van Winkel 2019-07-19 20:53:57 +02:00 committed by Anas Nashif
commit 00d6fe49b2

View file

@ -223,30 +223,14 @@ static void ssd16xx_set_orientation_internall(struct ssd16xx_data *driver)
#endif
}
int ssd16xx_resume(const struct device *dev)
static int ssd16xx_blanking_off(const struct device *dev)
{
struct ssd16xx_data *driver = dev->driver_data;
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));
return -ENOTSUP;
}
static int ssd16xx_suspend(const struct device *dev)
static int ssd16xx_blanking_on(const struct device *dev)
{
struct ssd16xx_data *driver = dev->driver_data;
u8_t tmp = SSD16XX_SLEEP_MODE_DSM;
return ssd16xx_write_cmd(driver, SSD16XX_CMD_SLEEP_MODE,
&tmp, sizeof(tmp));
return -ENOTSUP;
}
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 display_driver_api ssd16xx_driver_api = {
.blanking_on = ssd16xx_resume,
.blanking_off = ssd16xx_suspend,
.blanking_on = ssd16xx_blanking_on,
.blanking_off = ssd16xx_blanking_off,
.write = ssd16xx_write,
.read = ssd16xx_read,
.get_framebuffer = ssd16xx_get_framebuffer,