@@ -97,31 +97,6 @@ static void st7789v_reset_display(struct st7789v_data *data)
9797#endif
9898}
9999
100- int st7789v_cmd_read8 (struct st7789v_data * data , int cmd , u8_t * pRet )
101- {
102- u8_t sendbuff [4 ];
103-
104- sendbuff [0 ] = cmd ;
105-
106- const struct spi_buf tx_buf [2 ] = {
107- { .buf = sendbuff , .len = 1 },
108- { .buf = 0 , .len = 1 },
109- };
110- const struct spi_buf rx_buf [2 ] = {
111- { .buf = 0 , .len = 1 },
112- { .buf = pRet , .len = 1 }
113- };
114- struct spi_buf_set tx_bufs = { .buffers = tx_buf , .count = 2 };
115- struct spi_buf_set rx_bufs = { .buffers = rx_buf , .count = 2 };
116-
117- st7789v_set_cmd (data , 1 );
118- int ret = spi_transceive (data -> spi_dev , & data -> spi_config , & tx_bufs ,
119- & rx_bufs );
120- st7789v_set_cmd (data , 0 );
121-
122- return ret ;
123- }
124-
125100static int st7789v_blanking_on (const struct device * dev )
126101{
127102 struct st7789v_data * driver = (struct st7789v_data * )dev -> driver_data ;
@@ -212,24 +187,24 @@ static int st7789v_write(const struct device *dev,
212187 return 0 ;
213188}
214189
215- void * st7789v_get_framebuffer (const struct device * dev )
190+ static void * st7789v_get_framebuffer (const struct device * dev )
216191{
217192 return NULL ;
218193}
219194
220- int st7789v_set_brightness (const struct device * dev ,
195+ static int st7789v_set_brightness (const struct device * dev ,
221196 const u8_t brightness )
222197{
223198 return - ENOTSUP ;
224199}
225200
226- int st7789v_set_contrast (const struct device * dev ,
201+ static int st7789v_set_contrast (const struct device * dev ,
227202 const u8_t contrast )
228203{
229204 return - ENOTSUP ;
230205}
231206
232- void st7789v_get_capabilities (const struct device * dev ,
207+ static void st7789v_get_capabilities (const struct device * dev ,
233208 struct display_capabilities * capabilities )
234209{
235210 struct st7789v_data * data = (struct st7789v_data * )dev -> driver_data ;
@@ -248,7 +223,7 @@ void st7789v_get_capabilities(const struct device *dev,
248223 capabilities -> current_orientation = DISPLAY_ORIENTATION_NORMAL ;
249224}
250225
251- int st7789v_set_pixel_format (const struct device * dev ,
226+ static int st7789v_set_pixel_format (const struct device * dev ,
252227 const enum display_pixel_format pixel_format )
253228{
254229#ifdef CONFIG_ST7789V_RGB565
@@ -262,7 +237,7 @@ int st7789v_set_pixel_format(const struct device *dev,
262237 return - ENOTSUP ;
263238}
264239
265- int st7789v_set_orientation (const struct device * dev ,
240+ static int st7789v_set_orientation (const struct device * dev ,
266241 const enum display_orientation orientation )
267242{
268243 if (orientation == DISPLAY_ORIENTATION_NORMAL ) {
0 commit comments