Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/33129 )
Change subject: soc/intel/common/pch: Enable PCH Thermal Sensor for threshold configuration
......................................................................
Patch Set 15:
(3 comments)
https://review.coreboot.org/c/coreboot/+/33129/15/src/soc/intel/common/pch/t...
File src/soc/intel/common/pch/thermal/thermal.c:
https://review.coreboot.org/c/coreboot/+/33129/15/src/soc/intel/common/pch/t...
PS15, Line 29: static uint16_t read16p(uintptr_t addr)
: {
: return read16((void *)addr);
: }
:
: static void write16p(uintptr_t addr, uint16_t val)
: {
: write16((void *)addr, val);
: }
These are not necessary. A void pointer is allowed to alias any type, so below you can just call read16(...), and write16(...).
https://review.coreboot.org/c/coreboot/+/33129/15/src/soc/intel/common/pch/t...
PS15, Line 105: read16p
See above.
https://review.coreboot.org/c/coreboot/+/33129/15/src/soc/intel/common/pch/t...
PS15, Line 109: write16p
See above.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/33129
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibd1e669fcbfe8dc6e6e5556aa5b1373ed19c3685
Gerrit-Change-Number: 33129
Gerrit-PatchSet: 15
Gerrit-Owner: Sumeet R Pawnikar
sumeet.r.pawnikar@intel.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Duncan Laurie
dlaurie@chromium.org
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Patrick Rudolph
siro@das-labor.org
Gerrit-Reviewer: Paul Fagerburg
pfagerburg@chromium.org
Gerrit-Reviewer: Rajat Jain
rajatja@google.com
Gerrit-Reviewer: Shelley Chen
shchen@google.com
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: Sumeet R Pawnikar
sumeet.r.pawnikar@intel.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Balaji Manigandan
balaji.manigandan@intel.com
Gerrit-CC: John Su
john_su@compal.corp-partner.google.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: V Sowmya
v.sowmya@intel.com
Gerrit-Comment-Date: Fri, 26 Jul 2019 15:18:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment