Skip to content

Commit

Permalink
use OSSymbol as a ChipName key
Browse files Browse the repository at this point in the history
  • Loading branch information
joedmru committed Jan 26, 2020
1 parent ea14e9b commit ff846fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sensors/SMCSuperIO/SMCSuperIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ bool SMCSuperIO::start(IOService *provider) {
// set the chip name to IORegistry
if (ioreg) {
auto chipName = OSString::withCString(dataSource->getModelName());
ioreg->setProperty("СhipName", chipName);
const OSSymbol *key = OSSymbol::withCString("ChipName");
ioreg->setProperty(key, chipName);
chipName->release();
key->release();
}
// done
DBGLOG("ssio", "starting up SuperIO sensors done %d", vsmcNotifier != nullptr);
Expand Down

0 comments on commit ff846fd

Please sign in to comment.