Skip to contentSkip to conversation

staging: iio: dac: ad5446: Remove unused sign member from chip specific information structure

PATCH In review [email protected] 2 participants 2 messages Nov 23, 2010

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 staging: iio: dac: ad5446: Remove unused sign member from chip specific information structure

From: Michael Hennerich <[email protected]>

Remove unused sign member from chip specific information structure Fix typos

---
 drivers/staging/iio/dac/ad5446.c |   10 ----------
 drivers/staging/iio/dac/ad5446.h |    6 ++----
 2 files changed, 2 insertions(+), 14 deletions(-)
drivers/staging/iio/dac/ad5446.c +0 -10
index 4d65d27..e3387cd 100644
@@ -118,35 +118,30 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 2,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5446_store_sample,
 	},
 	[ID_AD5446] = {
 		.bits = 14,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5446_store_sample,
 	},
 	[ID_AD5542A] = {
 		.bits = 16,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5542_store_sample,
 	},
 	[ID_AD5512A] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 4,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5542_store_sample,
 	},
 	[ID_AD5620_2500] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 2,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 2500,
 		.store_sample = ad5620_store_sample,
 	},
@@ -154,7 +149,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 2,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 1250,
 		.store_sample = ad5620_store_sample,
 	},
@@ -162,7 +156,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 14,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 2500,
 		.store_sample = ad5620_store_sample,
 	},
@@ -170,7 +163,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 14,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 1250,
 		.store_sample = ad5620_store_sample,
 	},
@@ -178,7 +170,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 16,
 		.storagebits = 24,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 2500,
 		.store_sample = ad5660_store_sample,
 	},
@@ -186,7 +177,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 16,
 		.storagebits = 24,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 1250,
 		.store_sample = ad5660_store_sample,
 	},
drivers/staging/iio/dac/ad5446.h +2 -4
index ca795a9..902542e 100644
@@ -56,20 +56,18 @@ struct ad5446_state {
 };
 
 /**
- * struct ad5446_chip_info - chip specifc information
+ * struct ad5446_chip_info - chip specific information
  * @bits:		accuracy of the DAC in bits
  * @storagebits:	number of bits written to the DAC
  * @left_shift:		number of bits the datum must be shifted
- * @sign:		data representation [s]igned or [u]nsigned
  * @int_vref_mv:	AD5620/40/60: the internal reference voltage
- * @store_sample:	chip specifc helper function to store the datum
+ * @store_sample:	chip specific helper function to store the datum
  */
 
 struct ad5446_chip_info {
 	u8				bits;
 	u8				storagebits;
 	u8				left_shift;
-	char				sign;
 	u16				int_vref_mv;
 	void (*store_sample)		(struct ad5446_state *st, unsigned val);
 };
Signature · 1 line
1.6.0.2
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · On 11/23/10 10:40, [email protected] wrote:

From: Michael Hennerich <[email protected]>

Remove unused sign member from chip specific information structure Fix typos

Quoted 112 lines
---
 drivers/staging/iio/dac/ad5446.c |   10 ----------
 drivers/staging/iio/dac/ad5446.h |    6 ++----
 2 files changed, 2 insertions(+), 14 deletions(-)
drivers/staging/iio/dac/ad5446.c +0 -10
index 4d65d27..e3387cd 100644
@@ -118,35 +118,30 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 2,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5446_store_sample,
 	},
 	[ID_AD5446] = {
 		.bits = 14,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5446_store_sample,
 	},
 	[ID_AD5542A] = {
 		.bits = 16,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5542_store_sample,
 	},
 	[ID_AD5512A] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 4,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.store_sample = ad5542_store_sample,
 	},
 	[ID_AD5620_2500] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 2,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 2500,
 		.store_sample = ad5620_store_sample,
 	},
@@ -154,7 +149,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 12,
 		.storagebits = 16,
 		.left_shift = 2,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 1250,
 		.store_sample = ad5620_store_sample,
 	},
@@ -162,7 +156,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 14,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 2500,
 		.store_sample = ad5620_store_sample,
 	},
@@ -170,7 +163,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 14,
 		.storagebits = 16,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 1250,
 		.store_sample = ad5620_store_sample,
 	},
@@ -178,7 +170,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 16,
 		.storagebits = 24,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 2500,
 		.store_sample = ad5660_store_sample,
 	},
@@ -186,7 +177,6 @@ static const struct ad5446_chip_info ad5446_chip_info_tbl[] = {
 		.bits = 16,
 		.storagebits = 24,
 		.left_shift = 0,
-		.sign = 'u', /* IIO_SCAN_EL_TYPE_UNSIGNED */
 		.int_vref_mv = 1250,
 		.store_sample = ad5660_store_sample,
 	},
drivers/staging/iio/dac/ad5446.h +2 -4
index ca795a9..902542e 100644
@@ -56,20 +56,18 @@ struct ad5446_state {
 };
 
 /**
- * struct ad5446_chip_info - chip specifc information
+ * struct ad5446_chip_info - chip specific information
  * @bits:		accuracy of the DAC in bits
  * @storagebits:	number of bits written to the DAC
  * @left_shift:		number of bits the datum must be shifted
- * @sign:		data representation [s]igned or [u]nsigned
  * @int_vref_mv:	AD5620/40/60: the internal reference voltage
- * @store_sample:	chip specifc helper function to store the datum
+ * @store_sample:	chip specific helper function to store the datum
  */
 
 struct ad5446_chip_info {
 	u8				bits;
 	u8				storagebits;
 	u8				left_shift;
-	char				sign;
 	u16				int_vref_mv;
 	void (*store_sample)		(struct ad5446_state *st, unsigned val);
 };