Received: by 10.213.65.16 with SMTP id m16csp258541imf; Mon, 12 Mar 2018 02:49:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1e+zZVA+RQznl0IDtbqeTsehTpYlUHvuCVsYRxklM6Nu0lJIDR2ZIYs1A3FTzsvbHmkWG X-Received: by 10.99.172.84 with SMTP id z20mr3120433pgn.273.1520848199251; Mon, 12 Mar 2018 02:49:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520848199; cv=none; d=google.com; s=arc-20160816; b=P9zkgyhVCdGoA+QRSUYYDMU2xeJeyJzo8qLNjWE/vzNx1p6ndmn7gWXzFfXcTZAfoq dKP+SEZY7RasDDTkmhGu17EX2yYLM0BGXNTUT4ANXFgvi/ywuDU0uW1JbyHu/A2Hi6yY oGo6OsAQrc0CsTyK8IoVpEJs1nSLrQcfTxweIRl0t8dMXTf1MZAGXIlwA7FEYZ575X+W mx/j/OQNWbBEkCneE9idIpbFrZBi1wCxwS3sP2yCJ6vdbkk8Z1HrCCW009uYQjIkyVLP rx5/P0Nl+9mwz/TchMbh4H/pMqsQhlPhtrlw4O03C7biWE0fgbfycGUj2YL/AEYOzd6r zSIg== 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=NQ1SLZcgrWInY2U6Sa2d8Cc9fV8xadLvSScoND8ewvQ=; b=sMjLWHP+CiXPj2qNE+XDUVbqIORmC/Kq9sd2XNGlSJAMwhVUdGB0GtR9nKNRaR7T01 nP54ZHzmgEHjXbnxxuO6CIP7PbuB0y7XMs/LjjJMJ46LdVgc++BWvaR42qMH3O0Khnr9 F0zS7pxVrHFYB7Dyc5ibj6LV4lzShStk1tJdiktcyrQtpGBWmkQLGmYNSk2MfTE0/z2Z 33AdmF8eI9YeKIkv6z2Gsyt75yjqvbx7/qBK5ENW9D5L3xa+2FeLH3vFnmyg0vGgwRjk ppX03eXhYLr5SHEtiQ7yDEXOmVMkBYYFTvJER0tJFrHrrdqSyIPqwSIeQVKtP79QuQIT 5loA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XGds8k/E; 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 l20si3255154pgc.103.2018.03.12.02.49.45; Mon, 12 Mar 2018 02:49:59 -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=XGds8k/E; 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 S1752699AbeCLJr4 (ORCPT + 99 others); Mon, 12 Mar 2018 05:47:56 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35514 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752087AbeCLJry (ORCPT ); Mon, 12 Mar 2018 05:47:54 -0400 Received: by mail-pf0-f196.google.com with SMTP id y186so4111988pfb.2; Mon, 12 Mar 2018 02:47:53 -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=NQ1SLZcgrWInY2U6Sa2d8Cc9fV8xadLvSScoND8ewvQ=; b=XGds8k/EJHOvUjt8RUMsFgIIGpvWIwhy9uQXrMRllwwdlzy9Z/t5JCVPKzx9K8r0xY iiNV8ySmqM/+BqYtlhcijZLiCNSaKnY8wtxP64rSkC94KNtyaTLVw0DoX19VjNjb8nPp wL0NPPuBaBwOSn5hX0EzdutnGxKtNyzsApMxZz2BWPTHv1mmqvqFlkyGPn2+mcK2ZYD8 F+2YYuT3zigAW7bxeqCJeQYRGknQ7kGDXMRvXXxC9EgfpzwNEe6BS2H/3tnyBiLjyyzE vux3x7RtDqDR/pFe0P2T8zsgyNWLcsXWzoOXHrbG37o8zWGSYryzFQCY/B27uzCUPkCk EwwQ== 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=NQ1SLZcgrWInY2U6Sa2d8Cc9fV8xadLvSScoND8ewvQ=; b=dw4TXDI3dkQJNQ+ddF35fH5YC87aFEs+KbGRvj1oqv9FkQAv8mJCfQBGcYCAu8kBqA RiXjvBfRDDN9vHzoMotJcXjLOLJ5aLwsaodJSHMvvfPj+KiUIG5ulb7cylNZeBgPjO+0 kxUqcSSlXdGp8dTeSM1owuLLMFFCYXlfA1dJrg7+gbGsb98CTOZyxX8O35+TKgU+OjtW 3M+BLbNmsTQPfpSmzhGLU1d1R2PiPYvmW3dme7WKqWnntzGaqUtlQVqTScfCtuydkqZ1 7YXXgXhO7zPbS7ySJLSe5N3WqYDksfD+BnFYaYyNq+Ob6IBbGH5PEdvwoWFT/+AoxKbE ADaA== X-Gm-Message-State: AElRT7FxT1ljBVVAtLpSNLbzB8Q85MM3/AAzxGcB90Rc6bXTwWzgUnvZ GblJR/0gu+OLQKx3Hov1v3k= X-Received: by 10.101.83.199 with SMTP id z7mr6250300pgr.105.1520848073357; Mon, 12 Mar 2018 02:47:53 -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 m24sm16648180pfj.16.2018.03.12.02.47.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Mar 2018 02:47:52 -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] Fixes: 8f9439022648("staging: typec: modify parameter of tcpci_irq") Date: Mon, 12 Mar 2018 17:46:42 +0800 Message-Id: <1520848002-3801-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. 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