Skip to content

Commit 9728fe3

Browse files
pmeerwjic23
authored andcommitted
staging:iio:hmc5843: Tighten comments
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
1 parent 511c81e commit 9728fe3

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

drivers/staging/iio/magnetometer/hmc5843.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,11 @@ enum hmc5843_ids {
5151
#define HMC5843_RANGE_GAIN_DEFAULT 0x01
5252
#define HMC5843_RANGE_GAIN_MAX 0x07
5353

54-
/*
55-
* Device status
56-
*/
54+
/* Device status */
5755
#define HMC5843_DATA_READY 0x01
5856
#define HMC5843_DATA_OUTPUT_LOCK 0x02
5957

60-
/*
61-
* Mode register configuration
62-
*/
58+
/* Mode register configuration */
6359
#define HMC5843_MODE_CONVERSION_CONTINUOUS 0x00
6460
#define HMC5843_MODE_CONVERSION_SINGLE 0x01
6561
#define HMC5843_MODE_IDLE 0x02
@@ -75,18 +71,14 @@ enum hmc5843_ids {
7571
#define HMC5843_RATE_BITMASK 0x1C
7672
#define HMC5843_RATE_NOT_USED 0x07
7773

78-
/*
79-
* Device measurement configuration
80-
*/
74+
/* Device measurement configuration */
8175
#define HMC5843_MEAS_CONF_NORMAL 0x00
8276
#define HMC5843_MEAS_CONF_POSITIVE_BIAS 0x01
8377
#define HMC5843_MEAS_CONF_NEGATIVE_BIAS 0x02
8478
#define HMC5843_MEAS_CONF_NOT_USED 0x03
8579
#define HMC5843_MEAS_CONF_MASK 0x03
8680

87-
/*
88-
* Scaling factors: 10000000/Gain
89-
*/
81+
/* Scaling factors: 10000000/Gain */
9082
static const int hmc5843_regval_to_nanoscale[] = {
9183
6173, 7692, 10309, 12821, 18868, 21739, 25641, 35714
9284
};

0 commit comments

Comments
 (0)