@@ -521,7 +521,7 @@ static inline int gpio_pca_series_reg_cache_read(const struct device *dev,
521
521
#endif /* GPIO_NXP_PCA_SERIES_DEBUG */
522
522
523
523
src = ((uint8_t * )data -> cache ) + offset ;
524
- LOG_DBG ("cache read type %d len %d mem addr 0x%p" , reg_type , size , src );
524
+ LOG_DBG ("cache read type %d len %d mem addr 0x%p" , reg_type , size , ( void * ) src );
525
525
memcpy (buf , src , size );
526
526
return ret ;
527
527
}
@@ -560,7 +560,7 @@ static inline int gpio_pca_series_reg_cache_update(const struct device *dev,
560
560
(buf ? "buffer" : "device" ));
561
561
562
562
dst = ((uint8_t * )data -> cache ) + offset ;
563
- LOG_DBG ("cache write mem addr 0x%p len %d" , dst , size );
563
+ LOG_DBG ("cache write mem addr 0x%p len %d" , ( void * ) dst , size );
564
564
565
565
/** update cache from buf */
566
566
memcpy (dst , buf , size );
@@ -587,7 +587,7 @@ static inline struct gpio_pca_series_reg_cache_mini *gpio_pca_series_reg_cache_m
587
587
struct gpio_pca_series_data * data = dev -> data ;
588
588
struct gpio_pca_series_reg_cache_mini * cache =
589
589
(struct gpio_pca_series_reg_cache_mini * )(& data -> cache );
590
- LOG_DBG ("mini cache addr 0x%p" , cache );
590
+ LOG_DBG ("mini cache addr 0x%p" , ( void * ) cache );
591
591
return cache ;
592
592
}
593
593
@@ -725,10 +725,10 @@ void gpio_pca_series_debug_dump(const struct device *dev)
725
725
LOG_WRN ("**** debug dump ****" );
726
726
LOG_WRN ("device: %s" , dev -> name );
727
727
#ifdef CONFIG_GPIO_PCA_SERIES_CACHE_ALL
728
- LOG_WRN ("cache base addr: 0x%p size: 0x%2.2x" ,
729
- data -> cache , cfg -> part_cfg -> cache_size );
728
+ LOG_WRN ("cache base addr: 0x%p size: 0x%2.2x" , ( void * ) data -> cache ,
729
+ cfg -> part_cfg -> cache_size );
730
730
#else
731
- LOG_WRN ("cache base addr: 0x%p" , data -> cache );
731
+ LOG_WRN ("cache base addr: 0x%p" , ( void * ) data -> cache );
732
732
#endif /* CONFIG_GPIO_PCA_SERIES_CACHE_ALL */
733
733
734
734
LOG_WRN ("register profile:" );
0 commit comments