Skip to content

bq27xxx_battery data memory update

Julia Lawall cocci linux-pm 12 versions – New

Get series with b4
b4 am alpine.DEB.2.20.1710011359070.2031@hadrien

Versions newest first · linked by author and title

  1. v3 Latest posting 12/120 of 5 patches 0 repliesNew
  2. v3 posting 11/120 of 5 patches 0 repliesSuperseded
  3. v3 posting 10/120 of 5 patches 0 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v3 posting 9/120 of 5 patches0 repliesSuperseded
v3 posting 8/120 of 5 patches0 repliesSuperseded
v3 posting 7/120 of 5 patches0 repliesSuperseded
v3 posting 6/120 of 5 patches0 repliesSuperseded
v3 posting 5/120 of 5 patches0 repliesSuperseded
v3 posting 4/120 of 5 patches0 repliesSuperseded
v3 posting 3/120 of 5 patches0 repliesSuperseded
v3 posting 2/120 of 5 patches0 repliesSuperseded
v3 posting 1/120 of 5 patches0 repliesSuperseded

Patches in v3 posting 12/12 No applies recorded yet

None of the 5 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Cocci] [PATCH v3 0/5] bq27xxx_battery data memory update
Quoted 15 lines · Liam Breck
Quoted 14 lines · Julia Lawall
Quoted 10 lines · Liam Breck

Hi Julia, thanks so much for your help!

Quoted 4 lines · Julia Lawall

The github version of Coccinelle finally supports the semantic patch for your code. I have attached the semantic patch. I wonder what should be done with this? Do you want to use it locally with make coccicheck? Do you want it to be integrated into the kernel? Everything in the semantic

Yes, our intent is to push it upstream. Can you submit a patch?

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Did you test with 4.13? That should show a handful of dupes...

Are you sure? I did a git checkout v4.13 and there aren't any occurrences of BQ27XXX_DATA.

Sorry, that macro landed in 4.14. If you revert this commit, you should see dupes:
power: supply: bq27xxx: Remove duplicate chip data arrays

Thanks for the pointer to this commit. I get the results described in the commit log:

bq27500_regs and bq27510g1_regs have the same registers bq27500_regs and bq27510g2_regs have the same registers bq27510g1_regs and bq27510g2_regs have the same registers bq27510g3_regs and bq2751x_regs have the same registers bq2750x_props and bq27510g3_props have the same properties bq2750x_props and bq2751x_props have the same properties bq27510g3_props and bq2751x_props have the same properties bq27500_props and bq27510g1_props have the same properties bq27500_props and bq27510g2_props have the same properties bq27500_props and bq27520g2_props have the same properties bq27510g1_props and bq27510g2_props have the same properties bq27510g1_props and bq27520g2_props have the same properties bq27510g2_props and bq27520g2_props have the same properties

julia