<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/21655">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/intel: lpc: Use IS_POWER_OF_2 instead of open-coding it<br><br>Change-Id: I7a10a3fa5e1e9140a558f61109d0c9094d46e521<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M src/soc/intel/common/block/lpc/lpc_lib.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/21655/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/intel/common/block/lpc/lpc_lib.c b/src/soc/intel/common/block/lpc/lpc_lib.c<br>index 6b5f29a..c4144cb 100644<br>--- a/src/soc/intel/common/block/lpc/lpc_lib.c<br>+++ b/src/soc/intel/common/block/lpc/lpc_lib.c<br>@@ -161,7 +161,7 @@<br>        device_t dev = PCH_DEV_LPC;<br>   uint8_t bc_cntl;<br> <br>-  assert((bios_cntl_bit & (bios_cntl_bit - 1)) == 0);<br>+      assert(IS_POWER_OF_2(bios_cntl_bit));<br>         bc_cntl = pci_read_config8(dev, LPC_BIOS_CNTL);<br>       bc_cntl |= bios_cntl_bit;<br>     pci_write_config8(dev, LPC_BIOS_CNTL, bc_cntl);<br></pre><p>To view, visit <a href="https://review.coreboot.org/21655">change 21655</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21655"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7a10a3fa5e1e9140a558f61109d0c9094d46e521 </div>
<div style="display:none"> Gerrit-Change-Number: 21655 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>