Received: by 10.213.65.68 with SMTP id h4csp4517imn; Mon, 12 Mar 2018 04:57:18 -0700 (PDT) X-Google-Smtp-Source: AG47ELsGmQm8BGhYmBfoeCL7oj+wyPOAzEz/akWosoA/bfI8txV1XQnMuivFuApTWOf/BTXPDqqx X-Received: by 10.98.15.72 with SMTP id x69mr7685708pfi.16.1520855838743; Mon, 12 Mar 2018 04:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520855838; cv=none; d=google.com; s=arc-20160816; b=uU7FHonzYVrgLS9Cm+rXIZJlmMd9YtYHlxAchml8SqR1QoS2tkfPkWjj2De7Bsm9zK iFaGoVu1CsBEyqrsyhbBNIKEOYe2x+k0oudvgM/mPrRcByz73xJWz1QskLGWcCgSG6Ke l5s1v4eMZTpGaXjaUfZ/riuX57HXoGTSB9iHS7DVBGJzSVkveRhrYTUua13E/1uSI0zV L/DAM11tA+A6QZwkuz9pgn45NrVCpgLYhkQpA/0vDOC8MKblxEGUTgJzAoMiOxEaDuTw RU+7aMCsUU5sn+Md8o46Mnhieye+o+SVA1cmz6igWArRiezEQAHD/OrM7WlIe+X9IAkH cWVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=P73RxEFvuRPNFn8+EOYiqCJOPR1Y097r+HkUdq6ea7M=; b=VZ8G2yUYU/qBkFkqZ88IrmY08A9VjufB4owuSi6NtikOwBBucYlVXM2xX8VmjIqfhH lMkJ0DPNFViR5rrfUSae4eQneW26ypDHUbBQHjapIyQTVL9Iphj1lzvgA8nlaYEhQXJD 5TUUMuHuy9pPpIsFyZ1x2hQumo51Wxz7RiJpmESswYvptax7fuYgKCNR5b8nCcdRM4Be +r4VBCWvdAgkdl+/BlRFmI8zAVWAZZK+Q5wd1o/YKeK51E5HUc38e7Llu9zEXuDnBDvO nVnxM37JfG5OPT/S2R7CaVdahYzbUnBrvvC5DO90O9Jd9UR00TSGDzpGFgcmMT/fcx2F 7mug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NSxFxUSV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si5856442pln.578.2018.03.12.04.57.04; Mon, 12 Mar 2018 04:57:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NSxFxUSV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbeCLL4Q (ORCPT + 99 others); Mon, 12 Mar 2018 07:56:16 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:40983 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbeCLL4P (ORCPT ); Mon, 12 Mar 2018 07:56:15 -0400 Received: by mail-pg0-f66.google.com with SMTP id w17so2312147pgq.8; Mon, 12 Mar 2018 04:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=P73RxEFvuRPNFn8+EOYiqCJOPR1Y097r+HkUdq6ea7M=; b=NSxFxUSVIYiBIkVwSuajveYENH1IZdMTZnerp9/YeloQo4ax++NFv9CZOyVF6TIzNx RRCR9FzA+KAmfqg3YYvI77jRcJOx43GYivKDH7r25xbESdNBsn/e8aLReCfMTIl5PwaD 4EX4AUMsnkpfzeYanlK8BzsuKGURMuh8fMXbsCNXO5+Mz/deUGdrMGuH/XEg/v0sNXIR VHRVRLWr5KSShcsXbJCuuAB53XJXrZu06C+6qXl2Wf8ivHrdvCAMQLbjlUDI9Uqn0c0r Ym6zKLzdeG3k9/CMFNnBxwlxUFtVhvjdXJEGU35hb3LHqb938kX+j5eje1Crwg30cwAa uwWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=P73RxEFvuRPNFn8+EOYiqCJOPR1Y097r+HkUdq6ea7M=; b=jD8K+lqWpwv9efWbt0Bh8w1TVylfVUG6F2BK6w8TKMBHdeh17MWxTiCntA9+Aa0Bhx wRsI9h/Sxgh4O4XOaN7kYzsnLZ6sXfFCPeGTds18YsrZ71YZYCmEPfv/11loYivt8Oy9 Ks6UN9BpRvCtgWL9xOtaJUC6++SkBkAImTxxgwAkiHW8mr7q3jR+F/hTG4SB/ztTwWvk 7afxgyAaxq1twFRJCay+9TuQofcHk52wfuaepjrNhdsjo9X6mqLEJUcEFuIWnQV8Tlgt QFQQ5yr3p8mmK5mI085kbVkqaXqSjltS9RvbyX7QWA5Ov/mL66HTlAT04LptjGoJD3kB ODfQ== X-Gm-Message-State: AElRT7EIuHYXGjsPgxTDrGAfbpOFO7nSOZSz67AfuzNFAazxkr26S6hB piJWiX/QIEJD76e5Q2kZi9o= X-Received: by 10.101.86.1 with SMTP id l1mr6450838pgs.140.1520855774470; Mon, 12 Mar 2018 04:56:14 -0700 (PDT) Received: from localhost.localdomain (42-72-236-27.emome-ip.hinet.net. [42.72.236.27]) by smtp.gmail.com with ESMTPSA id n12sm13780227pgp.20.2018.03.12.04.56.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Mar 2018 04:56:13 -0700 (PDT) From: ShuFan Lee To: heikki.krogerus@linux.intel.com, linux@roeck-us.net, greg@kroah.com Cc: shufan_lee@richtek.com, cy_huang@richtek.com, jun.li@nxp.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH] staging: typec: modify parameter of tcpci_irq Date: Mon, 12 Mar 2018 19:55:24 +0800 Message-Id: <1520855724-4956-1-git-send-email-leechu729@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ShuFan Lee The parameter, dev_id, of tcpci_irq should be tcpci_chip. Remove definition of TCPC_CC_STATUS_DRPRST in tcpci.h. Fixes: 8f9439022648("staging: typec: handle vendor defined part and modify drp toggling flow") Signed-off-by: ShuFan Lee Reviewed-by: Li Jun Tested-by: Li Jun --- drivers/staging/typec/tcpci.c | 4 ++-- drivers/staging/typec/tcpci.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c index 804374056a1e..076d97eaff6f 100644 --- a/drivers/staging/typec/tcpci.c +++ b/drivers/staging/typec/tcpci.c @@ -451,9 +451,9 @@ irqreturn_t tcpci_irq(struct tcpci *tcpci) static irqreturn_t _tcpci_irq(int irq, void *dev_id) { - struct tcpci *tcpci = dev_id; + struct tcpci_chip *chip = dev_id; - return tcpci_irq(tcpci); + return tcpci_irq(chip->tcpci); } static const struct regmap_config tcpci_regmap_config = { diff --git a/drivers/staging/typec/tcpci.h b/drivers/staging/typec/tcpci.h index a2c1754ca222..34c865f0dcf6 100644 --- a/drivers/staging/typec/tcpci.h +++ b/drivers/staging/typec/tcpci.h @@ -59,7 +59,6 @@ #define TCPC_POWER_CTRL_VCONN_ENABLE BIT(0) #define TCPC_CC_STATUS 0x1d -#define TCPC_CC_STATUS_DRPRST BIT(5) #define TCPC_CC_STATUS_TERM BIT(4) #define TCPC_CC_STATUS_CC2_SHIFT 2 #define TCPC_CC_STATUS_CC2_MASK 0x3 -- 1.9.1