Browse Source

i2cset: Removed obsolete method to specify value mask

git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5921 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.1.0
Guenter Roeck 15 years ago
parent
commit
7dd2610269
  1. 1
      CHANGES
  2. 12
      tools/i2cset.c

1
CHANGES

@ -4,6 +4,7 @@ i2c-tools CHANGES
SVN
i2c-dev.h: Make value arrays const for block write functions
i2cset: Add support for SMBus and I2C block writes
Removed obsolete method to specify value mask
3.0.3 (2010-12-12)
Makefile: Let the environment set CC and CFLAGS

12
tools/i2cset.c

@ -265,18 +265,6 @@ int main(int argc, char *argv[])
pec = argv[flags+5][1] == 'p';
}
/* Old method to provide the value mask, deprecated and no longer
documented but still supported for compatibility */
if (argc > flags + 6) {
if (maskp) {
fprintf(stderr, "Error: Data value mask provided twice!\n");
help();
}
fprintf(stderr, "Warning: Using deprecated way to set the data value mask!\n");
fprintf(stderr, " Please switch to using -m.\n");
maskp = argv[flags+6];
}
if (maskp) {
vmask = strtol(maskp, &end, 0);
if (*end || vmask == 0) {

Loading…
Cancel
Save