Skip to content

Commit 1cb38d8

Browse files
committed
drivers:potentiometer:ad514x: Update comment to reflect top/bottom scale command usage
Signed-off-by: Anush Shetty <[email protected]>
1 parent ce5f1d2 commit 1cb38d8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/potentiometer/ad514x/ad5144.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,11 +615,12 @@ int ad5144_dpot_chn_read(struct dpot_dev *desc,
615615

616616
return 0;
617617
}
618+
618619
/**
619-
* @brief Enter/Exit the top scale or Bottom scale .
620+
* @brief Enter/Exit the top scale or Bottom scale .
620621
* @param desc - digipot descriptor.
621622
* @param chn - digipot channel.
622-
* @param IsTopScale - boolean flag to indicat top scale or bottom scale.
623+
* @param IsTopScale - boolean flag to indicate top scale or bottom scale.
623624
* @param nEnable - Enter or exit the TS.
624625
* @return 0 in case of success, negative error code otherwise.
625626
*/
@@ -638,7 +639,7 @@ int ad5144_dpot_top_bottom_scale_enable(struct dpot_dev *desc,
638639
if (ret)
639640
return ret;
640641

641-
/* Write contents of serial register data to RDAC (command #1) */
642+
/* Enter/Exit the top scale or Bottom scale (command #12 or command #13) */
642643
cmd.control = 0x9;
643644
cmd.address = ad5144_dpot_cmd_addr[chn];
644645
cmd.data = nEnable;

0 commit comments

Comments
 (0)