summaryrefslogtreecommitdiff
path: root/driver/ioexpander
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2020-03-19 13:48:21 -0600
committerCommit Bot <commit-bot@chromium.org>2020-03-20 18:14:22 +0000
commita18873f6ebbac08cd6bc3eee80ee0f8823b350b3 (patch)
treee1fd40f46fe8f57b905fa8590e93a9fcb1f2544e /driver/ioexpander
parentd3554c0366a9d5a9a548c0a2267221a69c41f556 (diff)
downloadchrome-ec-a18873f6ebbac08cd6bc3eee80ee0f8823b350b3.tar.gz
nct38xx: Remove ioexpander_nct38xx.h
BUG=b:150349225 BRANCH=none TEST=none Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: I830196908012778254e7306ea6a53bb3e4e4258d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2110547 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'driver/ioexpander')
-rw-r--r--driver/ioexpander/ioexpander_nct38xx.c2
-rw-r--r--driver/ioexpander/ioexpander_nct38xx.h33
2 files changed, 1 insertions, 34 deletions
diff --git a/driver/ioexpander/ioexpander_nct38xx.c b/driver/ioexpander/ioexpander_nct38xx.c
index e7fe3d9453..ae7957e013 100644
--- a/driver/ioexpander/ioexpander_nct38xx.c
+++ b/driver/ioexpander/ioexpander_nct38xx.c
@@ -10,7 +10,7 @@
#include "gpio.h"
#include "i2c.h"
#include "ioexpander.h"
-#include "ioexpander_nct38xx.h"
+#include "nct38xx.h"
#include "tcpci.h"
#define CPRINTF(format, args...) cprintf(CC_GPIO, format, ## args)
diff --git a/driver/ioexpander/ioexpander_nct38xx.h b/driver/ioexpander/ioexpander_nct38xx.h
deleted file mode 100644
index 56dfe76e04..0000000000
--- a/driver/ioexpander/ioexpander_nct38xx.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * Copyright 2019 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef __CROS_EC_IOEXPANDER_NCT38XX_H
-#define __CROS_EC_IOEXPANDER_NCT38XX_H
-/*
- * NCT38XX registers are defined in the driver/tcpm/nct38xx.h.
- * No matter they are used by TCPC or IO Expander driver.
- */
-#include "nct38xx.h"
-
-/*
- * The interrupt handler to handle Vendor Define ALERT event from IOEX chip.
- *
- * Normally, the Vendor Define event should be checked by the NCT38XX TCPCI
- * driver's tcpc_alert function.
- * This function is only included when NCT38XX TCPC driver is not included.
- * (i.e. CONFIG_USB_PD_TCPM_NCT38XX is not defined)
- */
-void nct38xx_ioex_handle_alert(int ioex);
-
-/*
- * Check which IO's interrupt event is triggered. If any, call its
- * registered interrupt handler.
- */
-int nct38xx_ioex_event_handler(int ioex);
-
-extern const struct ioexpander_drv nct38xx_ioexpander_drv;
-
-#endif /* defined(__CROS_EC_IOEXPANDER_NCT38XX_H) */