drivers: Allow to set supported pix format in ssd drivers

Allow to set supported pixel format in ssd1306 & ssd1673 drivers

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
Jan Van Winkel 2018-10-20 23:55:20 +02:00 committed by Anas Nashif
commit 9607dd9a16
2 changed files with 7 additions and 0 deletions

View file

@ -340,6 +340,9 @@ static void ssd1306_get_capabilities(const struct device *dev,
static int ssd1306_set_pixel_format(const struct device *dev,
const enum display_pixel_format pf)
{
if (pf == PIXEL_FORMAT_MONO10) {
return 0;
}
LOG_ERR("Unsupported");
return -ENOTSUP;
}

View file

@ -386,6 +386,10 @@ static void ssd1673_get_capabilities(const struct device *dev,
static int ssd1673_set_pixel_format(const struct device *dev,
const enum display_pixel_format pf)
{
if (pf == PIXEL_FORMAT_MONO10) {
return 0;
}
LOG_ERR("not supported");
return -ENOTSUP;
}