drivers: ssd1306: Fix dts read

Modified to read dts information.

Signed-off-by: Kwon Tae-young <tykwon@m2i.co.kr>
This commit is contained in:
Kwon Tae-young 2019-02-22 13:41:44 +09:00 committed by Anas Nashif
commit ac7751d23a

View file

@ -17,13 +17,13 @@ LOG_MODULE_REGISTER(ssd1306);
#include "ssd1306_regs.h"
#include <display/cfb.h>
#if DT_SOLOMON_SSD1306FB_0_PANEL_SEGMENT_REMAP == 1
#if DT_SOLOMON_SSD1306FB_0_SEGMENT_REMAP == 1
#define SSD1306_PANEL_SEGMENT_REMAP true
#else
#define SSD1306_PANEL_SEGMENT_REMAP false
#endif
#if DT_SOLOMON_SSD1306FB_0_PANEL_COM_INVDIR == 1
#if DT_SOLOMON_SSD1306FB_0_COM_INVDIR == 1
#define SSD1306_PANEL_COM_INVDIR true
#else
#define SSD1306_PANEL_COM_INVDIR false