[lkml]   [2018]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/7] staging:iio:ade7854: Cleanup on I2C/SPI code
This patchset reworks the I2C/SPI code from meter module. The set of
patches try to reduce the code duplication and make the communication
reliable. The current version of the module had many code duplications,
which make the code more error-prone and hard to read. Jonh Syne
identified some wrong error handling and fixed it in his patches; in
this series of patches I analyzed Jonh's fixes, and use it in the new

It is important to highlight that meter module is under observation, due
to the lack of hardware and the old design of the chip. However, John
has the hardware for testing and interest to help to update the code
[1]. As a result, this patchset represents the first work effort to
update the meter module in the staging.

1 -

Rodrigo Siqueira (7):
staging:iio:ade7854: Rework I2C write function
staging:iio:ade7854: Rework SPI write function
staging:iio:ade7854: Replace many functions for one function
staging:iio:ade7854: Rework I2C read function
staging:iio:ade7854: Rework SPI read function
staging:iio:ade7854: Remove read_reg_* duplications
staging:iio:ade7854: Add proper error handling condition.

drivers/staging/iio/meter/ade7854-i2c.c | 236 ++++++++--------------------
drivers/staging/iio/meter/ade7854-spi.c | 268 +++++++-------------------------
drivers/staging/iio/meter/ade7854.c | 44 +++---
drivers/staging/iio/meter/ade7854.h | 23 +--
4 files changed, 160 insertions(+), 411 deletions(-)


 \ /
  Last update: 2018-03-14 19:11    [W:0.073 / U:29.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site