Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

power: supply: max1721x: Correct spelling

Change 'stanalone' to 'standalone'
Change 'mesaurement' to 'measurement'
Change 'nonvilatile' to 'nonvolatile'
Change 'unical' to 'unique'
Change 'unaccesable' to 'unaccessible'
Change 'correcpondent' to 'correspond'

Signed-off-by: Xiaofeng Cao <caoxiaofeng@yulong.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Xiaofeng Cao and committed by
Sebastian Reichel
bd3689a6 c77b26e3

+7 -7
+7 -7
drivers/power/supply/max1721x_battery.c
··· 1 1 /* 2 2 * 1-Wire implementation for Maxim Semiconductor 3 - * MAX7211/MAX17215 stanalone fuel gauge chip 3 + * MAX7211/MAX17215 standalone fuel gauge chip 4 4 * 5 5 * Copyright (C) 2017 Radioavionica Corporation 6 6 * Author: Alex A. Mihaylov <minimumlaw@rambler.ru> ··· 28 28 /* Number of valid register addresses in W1 mode */ 29 29 #define MAX1721X_MAX_REG_NR 0x1EF 30 30 31 - /* Factory settings (nonvilatile registers) (W1 specific) */ 31 + /* Factory settings (nonvolatile registers) (W1 specific) */ 32 32 #define MAX1721X_REG_NRSENSE 0x1CF /* RSense in 10^-5 Ohm */ 33 33 /* Strings */ 34 34 #define MAX1721X_REG_MFG_STR 0x1CC ··· 105 105 /* 106 106 * Calculating current registers resolution: 107 107 * 108 - * RSense stored in 10^-5 Ohm, so mesaurment voltage must be 108 + * RSense stored in 10^-5 Ohm, so measurement voltage must be 109 109 * in 10^-11 Volts for get current in uA. 110 110 * 16 bit current reg fullscale +/-51.2mV is 102400 uV. 111 111 * So: 102400 / 65535 * 10^5 = 156252 ··· 137 137 /* 138 138 * POWER_SUPPLY_PROP_PRESENT will always readable via 139 139 * sysfs interface. Value return 0 if battery not 140 - * present or unaccesable via W1. 140 + * present or unaccessible via W1. 141 141 */ 142 142 val->intval = 143 143 regmap_read(info->regmap, MAX172XX_REG_STATUS, ··· 334 334 335 335 /* 336 336 * power_supply class battery name translated from W1 slave device 337 - * unical ID (look like 26-0123456789AB) to "max1721x-0123456789AB\0" 338 - * so, 26 (device family) correcpondent to max1721x devices. 339 - * Device name still unical for any numbers connected devices. 337 + * unique ID (look like 26-0123456789AB) to "max1721x-0123456789AB\0" 338 + * so, 26 (device family) correspond to max1721x devices. 339 + * Device name still unique for any number of connected devices. 340 340 */ 341 341 snprintf(info->name, sizeof(info->name), 342 342 "max1721x-%012X", (unsigned int)sl->reg_num.id);