diff options
author | Thibaut Girka <thib@sitedethib.com> | 2010-06-25 20:17:19 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-07-03 19:00:46 +0200 |
commit | b5e796d3912e84219d783f2c9c15bfd178821e12 (patch) | |
tree | 163273bcb7021f1e126f8eb716f372b195ad36b1 /drivers | |
parent | f81a8f9f0982decb3932733efb20620bf642a7d6 (diff) |
glamo-core: get rid of unused glamo_reg_{read, write}_batch
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/glamo-core.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/drivers/mfd/glamo-core.c b/drivers/mfd/glamo-core.c index d3cd3714493..e88e6c60533 100644 --- a/drivers/mfd/glamo-core.c +++ b/drivers/mfd/glamo-core.c @@ -175,40 +175,6 @@ static inline void __reg_clear_bit(struct glamo_core *glamo, __reg_write(glamo, reg, tmp); } -static void __reg_write_batch(struct glamo_core *glamo, uint16_t reg, - uint16_t count, uint16_t *values) -{ - uint16_t end; - for (end = reg + count * 2; reg < end; reg += 2, ++values) - __reg_write(glamo, reg, *values); -} - -static void __reg_read_batch(struct glamo_core *glamo, uint16_t reg, - uint16_t count, uint16_t *values) -{ - uint16_t end; - for (end = reg + count * 2; reg < end; reg += 2, ++values) - *values = __reg_read(glamo, reg); -} - -void glamo_reg_write_batch(struct glamo_core *glamo, uint16_t reg, - uint16_t count, uint16_t *values) -{ - spin_lock(&glamo->lock); - __reg_write_batch(glamo, reg, count, values); - spin_unlock(&glamo->lock); -} -EXPORT_SYMBOL(glamo_reg_write_batch); - -void glamo_reg_read_batch(struct glamo_core *glamo, uint16_t reg, - uint16_t count, uint16_t *values) -{ - spin_lock(&glamo->lock); - __reg_read_batch(glamo, reg, count, values); - spin_unlock(&glamo->lock); -} -EXPORT_SYMBOL(glamo_reg_read_batch); - /*********************************************************************** * resources of sibling devices ***********************************************************************/ |