From patchwork Wed Sep 26 15:23:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Thomson X-Patchwork-Id: 10616085 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00079913 for ; Wed, 26 Sep 2018 15:23:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D917C2B21C for ; Wed, 26 Sep 2018 15:23:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD5A42B22E; Wed, 26 Sep 2018 15:23:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FROM_WORDY, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EE3D2B226 for ; Wed, 26 Sep 2018 15:23:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728293AbeIZVhW (ORCPT ); Wed, 26 Sep 2018 17:37:22 -0400 Received: from mail1.bemta25.messagelabs.com ([195.245.230.1]:3082 "EHLO mail1.bemta25.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727157AbeIZVhV (ORCPT ); Wed, 26 Sep 2018 17:37:21 -0400 Received: from [46.226.52.104] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-1.bemta.az-a.eu-west-1.aws.symcld.net id A3/BA-16401-884ABAB5; Wed, 26 Sep 2018 15:23:52 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMIsWRWlGSWpSXmKPExsUSt3OpsW77ktX RBnseGlg0L17PZtG1eieLxeVdc9gsFi1rZbZ4svAMkwOrx7yTgR77565h99j5vYHd4/MmuQCW KNbMvKT8igTWjBlHbrEXPBSqWDRxKnsD41P+LkYuDiGB9YwSvyfdZ+9i5AByKiRWruUHMXkFM iWObqwAMTkF3CX27CvuYuQEKnCTeD63iQ3EZhOwkJh84gGYzSKgKtHbNZ0dxBYWCJPY9OAcO8 h0EYEeRomNR5aAJZgFkiTWvu1hBrF5BQQlTs58wgIRl5A4+OIFM8QCA4nTCxrB4hIC9hLT319 lBrlBQkBfovFYLETYUOL7rG9QJeYSXdOnMk9gFJyFZOosJFMXMDKtYjRPKspMzyjJTczM0TU0 MNA1NDTSNbQ01jUx1kus0k3USy3VLU8tLtE11EssL9YrrsxNzknRy0st2cQIDPyUgoPaOxifL E8/xCjJwaQkyqvgszpaiC8pP6UyI7E4I76oNCe1+BCjDAeHkgTvmsVAOcGi1PTUirTMHGAMwq QlOHiURHhNQNK8xQWJucWZ6RCpU4yKUuK8VSAJAZBERmkeXBss7i8xykoJ8zIyMDAI8RSkFuV mlqDKv2IU52BUEub1ApnCk5lXAjf9FdBiJqDFE3pWgCwuSURISTUw9v9gdlotHrTvpOoOLpcF l79+fMon9P+OjYmzRXP2SflLu8zcjh40n7Fl4vEKD31xqSLmZK6F97dumHFmv/YRNsNA7+d1/ fFmkrHzvTlZjVZPN1uR91jA6jEfyw8H16s3pzA42N+o3iVRIPODw6vhkymriMoSMR7HpSs83n 7feGWvWNJeO71NSizFGYmGWsxFxYkAGW2BiPYCAAA= X-Env-Sender: Adam.Thomson.Opensource@diasemi.com X-Msg-Ref: server-25.tower-268.messagelabs.com!1537975431!167089!1 X-Originating-IP: [94.185.165.51] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.14.24; banners=-,-,- X-VirusChecked: Checked Received: (qmail 16801 invoked from network); 26 Sep 2018 15:23:51 -0000 Received: from mailrelay2.diasemi.com (HELO sw-ex-cashub01.diasemi.com) (94.185.165.51) by server-25.tower-268.messagelabs.com with AES128-SHA encrypted SMTP; 26 Sep 2018 15:23:51 -0000 Received: from swsrvapps-01.diasemi.com (10.20.28.141) by SW-EX-CASHUB01.diasemi.com (10.20.16.140) with Microsoft SMTP Server id 14.3.382.0; Wed, 26 Sep 2018 16:23:51 +0100 Received: by swsrvapps-01.diasemi.com (Postfix, from userid 22379) id 2BE5A3FBB8; Wed, 26 Sep 2018 16:23:51 +0100 (BST) Message-ID: <8ef602efbb7ee84ec86225ae4b9e1d138154e51b.1537975081.git.Adam.Thomson.Opensource@diasemi.com> In-Reply-To: References: From: Adam Thomson Date: Wed, 26 Sep 2018 16:23:51 +0100 Subject: [PATCH 1/2] usb: typec: fusb302: Correct spelling mistake for toggling state To: Guenter Roeck , Heikki Krogerus , Greg Kroah-Hartman CC: , , MIME-Version: 1.0 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-ServerInfo: sw-ex-cashub01.diasemi.com, 9 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 26/09/2018 13:22:00 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There's a typo in the enum name of the 'OFF' state for toggling (TOGGLINE instead of TOGGLING). This commit resolves that trivial spelling inconsistency. Signed-off-by: Adam Thomson Reviewed-by: Guenter Roeck Reviewed-by: Heikki Krogerus --- drivers/usb/typec/tcpm/fusb302.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/typec/tcpm/fusb302.c b/drivers/usb/typec/tcpm/fusb302.c index 6e9370a..fd851d8 100644 --- a/drivers/usb/typec/tcpm/fusb302.c +++ b/drivers/usb/typec/tcpm/fusb302.c @@ -42,7 +42,7 @@ #define T_BC_LVL_DEBOUNCE_DELAY_MS 30 enum toggling_mode { - TOGGLINE_MODE_OFF, + TOGGLING_MODE_OFF, TOGGLING_MODE_DRP, TOGGLING_MODE_SNK, TOGGLING_MODE_SRC, @@ -594,7 +594,7 @@ static int fusb302_set_toggling(struct fusb302_chip *chip, chip->intr_comp_chng = false; /* configure toggling mode: none/snk/src/drp */ switch (mode) { - case TOGGLINE_MODE_OFF: + case TOGGLING_MODE_OFF: ret = fusb302_i2c_mask_write(chip, FUSB_REG_CONTROL2, FUSB_REG_CONTROL2_MODE_MASK, FUSB_REG_CONTROL2_MODE_NONE); @@ -626,7 +626,7 @@ static int fusb302_set_toggling(struct fusb302_chip *chip, break; } - if (mode == TOGGLINE_MODE_OFF) { + if (mode == TOGGLING_MODE_OFF) { /* mask TOGDONE interrupt */ ret = fusb302_i2c_set_bits(chip, FUSB_REG_MASKA, FUSB_REG_MASKA_TOGDONE); @@ -702,7 +702,7 @@ static int tcpm_set_cc(struct tcpc_dev *dev, enum typec_cc_status cc) ret = -EINVAL; goto done; } - ret = fusb302_set_toggling(chip, TOGGLINE_MODE_OFF); + ret = fusb302_set_toggling(chip, TOGGLING_MODE_OFF); if (ret < 0) { fusb302_log(chip, "cannot stop toggling, ret=%d", ret); goto done; @@ -1292,7 +1292,7 @@ static int fusb302_handle_togdone_snk(struct fusb302_chip *chip, tcpm_cc_change(chip->tcpm_port); } /* turn off toggling */ - ret = fusb302_set_toggling(chip, TOGGLINE_MODE_OFF); + ret = fusb302_set_toggling(chip, TOGGLING_MODE_OFF); if (ret < 0) { fusb302_log(chip, "cannot set toggling mode off, ret=%d", ret); @@ -1388,7 +1388,7 @@ static int fusb302_handle_togdone_src(struct fusb302_chip *chip, tcpm_cc_change(chip->tcpm_port); } /* turn off toggling */ - ret = fusb302_set_toggling(chip, TOGGLINE_MODE_OFF); + ret = fusb302_set_toggling(chip, TOGGLING_MODE_OFF); if (ret < 0) { fusb302_log(chip, "cannot set toggling mode off, ret=%d", ret);