From nobody Fri Nov 29 19:29:24 2024 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9FD17483 for ; Mon, 16 Sep 2024 01:46:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726451192; cv=none; b=AFAuSJyIK8qTKTzdt9gv4/hFs4orMYsRvAVPzvPHPq8HbPrMMJdkX1QjWzFA/m751vLNV6eo2O5TzgB8nhsDrtHDcL8TUa6V5c7JchztgZI0L6J/TOQ9l0e6v2ULdHVjBZ1crw3oiW53T1qq3QW46f5N1o7gdKdHXg6gvKsKQ1c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726451192; c=relaxed/simple; bh=xE/fdlG6ydZQllBtKyFWLr5BsH11sTnbp+iFO5aF6dI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jAw816m2MeOV9fDI8uy2FidzQwD6edUpzhX61ZsfgEUth4J21/CrSJWbLYLG50X1Rij8aVMSshD60Df8825FU6ePFsAaHIIN4A3w4PD48aZPmIAHXEx9TxRwlIYi/WKseDabtI5bHxsn9dcMzpGJoMoyv/UqiG0dWzQzVq/2eGc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=everestkc.com.np; spf=none smtp.mailfrom=everestkc.com.np; dkim=pass (2048-bit key) header.d=everestkc-com-np.20230601.gappssmtp.com header.i=@everestkc-com-np.20230601.gappssmtp.com header.b=gcYMUCsJ; arc=none smtp.client-ip=209.85.210.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=everestkc.com.np Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=everestkc.com.np Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=everestkc-com-np.20230601.gappssmtp.com header.i=@everestkc-com-np.20230601.gappssmtp.com header.b="gcYMUCsJ" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7191ee537cbso2809294b3a.2 for ; Sun, 15 Sep 2024 18:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=everestkc-com-np.20230601.gappssmtp.com; s=20230601; t=1726451190; x=1727055990; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ppeTr2u8I2Un8Fu3bec/meFpGK501IK9rm4AM6FtSDA=; b=gcYMUCsJxoTf2sGjjM9J5X3MPpHLcGAh8on4ZvLehTcHqTzXNIi0YxjfGo1vC/P3T7 MSr1Al2QwJyZXt+tFuw0w4MwD+OWYL4yaEl05JRgw+IndtSRsbiY4gdsba/SlhgixGHp 8UrI4F7HEn3WtfmAiDXpeTOYl37lKsePRdH8BNj19/6T+DfITXRyCPf0OMKgEIFXAViS LV/D2hfdoDOq88MeAnqBktR574GYELVIpHJYhBACqccHEsGBFBmJ8fh9lYej4yKCepfF GK32g7CdCB4skR4KOSIYxWTCsI2WagA4VWpt72iktmQjuWe5iropAQ72kuAUJgaZxVpr xsCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726451190; x=1727055990; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ppeTr2u8I2Un8Fu3bec/meFpGK501IK9rm4AM6FtSDA=; b=XW221uX9mo4oJvnwo+sddnAXIPcZwBrlz4r1vHjuYdW7l4GT0bNd4knQgKsJdmObB7 Q9K0nkmTpwguowaIkSGdJZ9KYkn5CYjaHRFTGFNoU05kldDkcDvPo6RWyPWBfjtwqWRL CUh8eF/+pnX76aO9kFtwEaGenbegE44yBfTSClGZvEM5eZ0mFAJxJykV2mkpsByYE0LS bmObIxL/tUHZhZx6fyTppYGtoWAUyne28cjkA+z6/8aB9q6sU/8uVUyBf2sPz0Dt3kDB f9AETorppySNn1T9IG9O2SZin2vf6lxrfjbPyEnSWNcKrjGOB7fkCjJIUu5jJFn8pO3M w4bg== X-Forwarded-Encrypted: i=1; AJvYcCXhK1ueerIK5MN2b5tnf7BcNRvX5cgH9tC/i/8nmDExCThlcZzATPEXYJJ+Cd2QFhuKvsGyuXUFkj4Lq5A=@vger.kernel.org X-Gm-Message-State: AOJu0YzIkwmrGEBGah3X13zFzWtBRs8Gs1JUbykZLxz5MrVLxFnGR0oj nR9Eto54LUloaQ/kd+247fF0NtPDJdg3IaG4PaXnRnjCs55Yzj7okXr2WSbrLYkOvvzmrGdqRIO abR8= X-Google-Smtp-Source: AGHT+IG1m4qPjI+QqXPoM3f4N/A5UNKrK1vTMJmDpcSIgfw9T63TKvVVkYDriEN2bD5uYSXGJOhRMQ== X-Received: by 2002:a05:6a00:4f85:b0:717:81b3:4c7a with SMTP id d2e1a72fcca58-719262060abmr22528974b3a.24.1726451189784; Sun, 15 Sep 2024 18:46:29 -0700 (PDT) Received: from localhost.localdomain ([132.178.238.28]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944adfa72sm2884129b3a.93.2024.09.15.18.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Sep 2024 18:46:29 -0700 (PDT) From: "Everest K.C." To: gregkh@linuxfoundation.org, u.kleine-koenig@pengutronix.de Cc: "Everest K.C." , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Fix spelling errors and codestyle in file drivers/usb/gadget/udc/m66592-udc.c Date: Sun, 15 Sep 2024 19:45:07 -0600 Message-ID: <20240916014509.5871-1-everestkc@everestkc.com.np> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Fixed spelling errors in error message and comments that were reported by codespell as follows: unexpect --> unexpected workaound --> workaround Also, fixed codestyle error and replaced a hardcoded function name in a pr_err statement with __func__. Signed-off-by: Everest K.C. --- drivers/usb/gadget/udc/m66592-udc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m= 66592-udc.c index bfaa5291e6c8..e0b261ff0828 100644 --- a/drivers/usb/gadget/udc/m66592-udc.c +++ b/drivers/usb/gadget/udc/m66592-udc.c @@ -110,7 +110,7 @@ static inline u16 control_reg_get_pid(struct m66592 *m6= 6592, u16 pipenum) offset =3D get_pipectr_addr(pipenum); pid =3D m66592_read(m66592, offset) & M66592_PID; } else - pr_err("unexpect pipe num (%d)\n", pipenum); + pr_err("unexpected pipe num (%d)\n", pipenum); =20 return pid; } @@ -126,7 +126,7 @@ static inline void control_reg_set_pid(struct m66592 *m= 66592, u16 pipenum, offset =3D get_pipectr_addr(pipenum); m66592_mdfy(m66592, pid, M66592_PID, offset); } else - pr_err("unexpect pipe num (%d)\n", pipenum); + pr_err("unexpected pipe num (%d)\n", pipenum); } =20 static inline void pipe_start(struct m66592 *m66592, u16 pipenum) @@ -155,7 +155,7 @@ static inline u16 control_reg_get(struct m66592 *m66592= , u16 pipenum) offset =3D get_pipectr_addr(pipenum); ret =3D m66592_read(m66592, offset); } else - pr_err("unexpect pipe num (%d)\n", pipenum); + pr_err("unexpected pipe num (%d)\n", pipenum); =20 return ret; } @@ -172,7 +172,7 @@ static inline void control_reg_sqclr(struct m66592 *m66= 592, u16 pipenum) offset =3D get_pipectr_addr(pipenum); m66592_bset(m66592, M66592_SQCLR, offset); } else - pr_err("unexpect pipe num(%d)\n", pipenum); + pr_err("unexpected pipe num(%d)\n", pipenum); } =20 static inline int get_buffer_size(struct m66592 *m66592, u16 pipenum) @@ -293,7 +293,7 @@ static void pipe_buffer_release(struct m66592 *m66592, if (info->type =3D=3D M66592_BULK) m66592->bulk--; } else - pr_err("ep_release: unexpect pipenum (%d)\n", + pr_err("ep_release: unexpected pipenum (%d)\n", info->pipe); } =20 @@ -428,7 +428,7 @@ static int alloc_pipe_config(struct m66592_ep *ep, counter =3D &m66592->isochronous; break; default: - pr_err("unexpect xfer type\n"); + pr_err("unexpected xfer type\n"); return -EINVAL; } ep->type =3D info.type; @@ -579,7 +579,7 @@ static void start_ep0(struct m66592_ep *ep, struct m665= 92_request *req) control_end(ep->m66592, 0); break; default: - pr_err("start_ep0: unexpect ctsq(%x)\n", ctsq); + pr_err("%s: unexpected ctsq(%x)\n", __func__, ctsq); break; } } @@ -599,7 +599,7 @@ static void init_controller(struct m66592 *m66592) m66592_bclr(m66592, M66592_DPRPU, M66592_SYSCFG); m66592_bset(m66592, M66592_USBE, M66592_SYSCFG); =20 - /* This is a workaound for SH7722 2nd cut */ + /* This is a workaround for SH7722 2nd cut */ m66592_bset(m66592, 0x8000, M66592_DVSTCTR); m66592_bset(m66592, 0x1000, M66592_TESTMODE); m66592_bclr(m66592, 0x8000, M66592_DVSTCTR); @@ -1186,7 +1186,7 @@ __acquires(m66592->lock) control_end(m66592, 0); break; default: - pr_err("ctrl_stage: unexpect ctsq(%x)\n", ctsq); + pr_err("ctrl_stage: unexpected ctsq(%x)\n", ctsq); break; } } --=20 2.43.0