Skip to content
Permalink
Browse files

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>
  • Loading branch information...
vanwinkeljan authored and nashif committed Jul 19, 2019
1 parent 42d1899 commit 00d6fe49b2eecb2b2e11d6b1e1d39ace7b177112
Showing with 6 additions and 22 deletions.
  1. +6 −22 drivers/display/ssd16xx.c
@@ -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,

0 comments on commit 00d6fe4

Please sign in to comment.
You can’t perform that action at this time.