-
Notifications
You must be signed in to change notification settings - Fork 50
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
Transformers update #51
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
83bde6e
tf-dts: update regulators
clamor-s cd363be
transformer-dts: implement new thermal set
clamor-s 057cc26
tf300t-dts: update sound nodes
clamor-s 4206aa8
asus-ec: partially revert battery changes
clamor-s 9d51d73
tf101-dts: configure dock
clamor-s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,7 +222,6 @@ static const struct power_supply_desc dock_battery_desc = { | |
|
||
static int asusec_battery_probe(struct platform_device *pdev) | ||
{ | ||
const struct asusec_pdata *pdata = dev_get_platdata(&pdev->dev); | ||
const struct asusec_info *ec = asusec_cell_to_ec(pdev); | ||
const struct power_supply_desc *psd; | ||
struct asusec_battery_data *priv; | ||
|
@@ -237,14 +236,14 @@ static int asusec_battery_probe(struct platform_device *pdev) | |
mutex_init(&priv->battery_lock); | ||
|
||
priv->ec = ec; | ||
priv->ec_addr = pdata->ec_addr; | ||
priv->ec_addr = 0x14; | ||
priv->batt_data_ts = jiffies - 1; | ||
priv->last_state = POWER_SUPPLY_STATUS_UNKNOWN; | ||
|
||
cfg.of_node = pdev->dev.parent->of_node; | ||
cfg.drv_data = priv; | ||
|
||
if (pdata->is_pad) | ||
if (!of_property_match_string(cfg.of_node, "compatible", "asus,pad-ec")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Couldn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll change it after merging. The rest looks okay. |
||
psd = &pad_battery_desc; | ||
else | ||
psd = &dock_battery_desc; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please tell where from you got these names and values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/grate-driver/linux/blob/master/arch/arm/boot/dts/tegra30-asus-nexus7-grouper-ti-pmic.dtsi#L44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you checked it on all transformer devices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, tf201/tf300t/tf700t both native and kexec. Furthermore, those values can be logged from downstream is /sys/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weren't the names correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely that the names were correct and N7 has incorrect names, but I'm not 100% sure.