From 3453fe799d8c07245d5902d634c9f5690ff21f73 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 19 Nov 2022 12:58:53 +0800 Subject: [PATCH] Fix video/max7456.c:775:19: error: unused function '__mx7_write_reg__dmm' video/max7456.c:792:19: error: unused function '__mx7_write_reg__dmdi' video/max7456.c:809:19: error: unused function '__mx7_write_reg__dmah' video/max7456.c:826:19: error: unused function '__mx7_write_reg__dmal' Signed-off-by: Xiang Xiao --- drivers/video/max7456.c | 68 ----------------------------------------- 1 file changed, 68 deletions(-) diff --git a/drivers/video/max7456.c b/drivers/video/max7456.c index 550757e9d7..c1dd97121a 100644 --- a/drivers/video/max7456.c +++ b/drivers/video/max7456.c @@ -761,74 +761,6 @@ static inline int __mx7_read_reg__cmdo(FAR struct mx7_dev_s *dev) return val; } -/**************************************************************************** - * Name: __mx7_read_reg__dmm - * - * Description: - * Returns the contents of DMM. A simple helper around __mx7_read_reg(). - * - * Returned value: - * Returns the register value, or a negative errno. - * - ****************************************************************************/ - -static inline int __mx7_write_reg__dmm(FAR struct mx7_dev_s *dev, - uint8_t val) -{ - return __mx7_write_reg(dev, DMM, &val, sizeof(val)); -} - -/**************************************************************************** - * Name: __mx7_read_reg__dmdi - * - * Description: - * Returns the contents of DMDI. A simple helper around __mx7_read_reg(). - * - * Returned value: - * Returns the register value, or a negative errno. - * - ****************************************************************************/ - -static inline int __mx7_write_reg__dmdi(FAR struct mx7_dev_s *dev, - uint8_t val) -{ - return __mx7_write_reg(dev, DMDI, &val, sizeof(val)); -} - -/**************************************************************************** - * Name: __mx7_read_reg__dmah - * - * Description: - * Returns the contents of DMAH. A simple helper around __mx7_read_reg(). - * - * Returned value: - * Returns the register value, or a negative errno. - * - ****************************************************************************/ - -static inline int __mx7_write_reg__dmah(FAR struct mx7_dev_s *dev, - uint8_t val) -{ - return __mx7_write_reg(dev, DMAH, &val, sizeof(val)); -} - -/**************************************************************************** - * Name: __mx7_read_reg__dmal - * - * Description: - * Returns the contents of DMAL. A simple helper around __mx7_read_reg(). - * - * Returned value: - * Returns the register value, or a negative errno. - * - ****************************************************************************/ - -static inline int __mx7_write_reg__dmal(FAR struct mx7_dev_s *dev, - uint8_t val) -{ - return __mx7_write_reg(dev, DMAL, &val, sizeof(val)); -} - /**************************************************************************** * Name: __mx7_wait_reset *