[coreboot-gerrit] Change in coreboot[master]: ec/quanta: pass ops to pnp_enable_devices instead of LDN-specific ove...

Felix Held (Code Review) gerrit at coreboot.org
Sat Jul 7 00:28:21 CEST 2018


Felix Held has uploaded this change for review. ( https://review.coreboot.org/27395


Change subject: ec/quanta: pass ops to pnp_enable_devices instead of LDN-specific override
......................................................................

ec/quanta: pass ops to pnp_enable_devices instead of LDN-specific override

Change-Id: I59eb60efeefcdbe8b2dc08e17453cf95bdfd39b1
Signed-off-by: Felix Held <felix-coreboot at felixheld.de>
---
M src/ec/quanta/ene_kb3940q/ec.c
M src/ec/quanta/it8518/ec.c
2 files changed, 4 insertions(+), 6 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/27395/1

diff --git a/src/ec/quanta/ene_kb3940q/ec.c b/src/ec/quanta/ene_kb3940q/ec.c
index b25a51b..11a1cb8 100644
--- a/src/ec/quanta/ene_kb3940q/ec.c
+++ b/src/ec/quanta/ene_kb3940q/ec.c
@@ -154,13 +154,12 @@
 };
 
 static struct pnp_info pnp_dev_info[] = {
-	{ &ops, 0, 0, 0, }
+	{ NULL, 0, 0, 0, }
 };
 
 static void enable_dev(struct device *dev)
 {
-	pnp_enable_devices(dev, &pnp_ops, ARRAY_SIZE(pnp_dev_info),
-			   pnp_dev_info);
+	pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
 }
 
 struct chip_operations ec_quanta_ene_kb3940q_ops = {
diff --git a/src/ec/quanta/it8518/ec.c b/src/ec/quanta/it8518/ec.c
index 3a51733..e293f7c 100644
--- a/src/ec/quanta/it8518/ec.c
+++ b/src/ec/quanta/it8518/ec.c
@@ -167,13 +167,12 @@
 };
 
 static struct pnp_info pnp_dev_info[] = {
-	{ &ops, 0, 0, 0, }
+	{ NULL, 0, 0, 0, }
 };
 
 static void enable_dev(struct device *dev)
 {
-	pnp_enable_devices(dev, &pnp_ops, ARRAY_SIZE(pnp_dev_info),
-			   pnp_dev_info);
+	pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info);
 }
 
 struct chip_operations ec_quanta_it8518_ops = {

-- 
To view, visit https://review.coreboot.org/27395
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I59eb60efeefcdbe8b2dc08e17453cf95bdfd39b1
Gerrit-Change-Number: 27395
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Held <felix-coreboot at felixheld.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180706/b55a38f4/attachment.html>


More information about the coreboot-gerrit mailing list