Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: ltc4282: support ein reading #348

Closed
wants to merge 1 commit into from

Conversation

DelphineChiu
Copy link

Summary:
Support ltc4282 ein reading.

Test plan:
Build and test pass on fby35

  1. Bind ein reading on sensor number: 0xD8 and check reading is correct
    root@bmc-oob:~# sensor-util slot1 | grep 0xD8
    BB_MEDUSA_PWR (0xD8) : 62.67 Watts | (ok)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 20, 2022
@facebook-github-bot
Copy link
Contributor

@GoldenBug has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Comment on lines 33 to 42
if (op == SET_BIT) {
msg->data[1] = SETBIT(msg->data[1], bit);
} else if (op == CLEAR_BIT) {
msg->data[1] = CLEARBIT(msg->data[1], bit);
} else {
return -1;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change to a switch statement

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @GoldenBug,

We've changed it to switch statement, please help review it again, thanks.

Regards,
Jerry

Summary:
Support ltc4282 ein reading.

Test plan:
Build and test pass on fby35

1. Bind ein reading on sensor number: 0xD8 and check reading is correct
root@bmc-oob:~# sensor-util slot1 | grep 0xD8
BB_MEDUSA_PWR                (0xD8) :   62.67 Watts | (ok)
@facebook-github-bot
Copy link
Contributor

@DelphineChiu has updated the pull request. You must reimport the pull request before landing.

@Jerry-wiwynn Jerry-wiwynn deleted the Jerry/main/ltc4282_ein branch August 5, 2022 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants