Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp489049rwe; Fri, 26 Aug 2022 08:36:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5nSH7etzjH7ctqgI8PHXKVbOaboM/eHRtqV5cfDpZ/xDFarrWDKi8tNeGEByBy8LSLckV1 X-Received: by 2002:a05:6402:274e:b0:447:4e9d:69e8 with SMTP id z14-20020a056402274e00b004474e9d69e8mr7157983edd.295.1661528185543; Fri, 26 Aug 2022 08:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661528185; cv=none; d=google.com; s=arc-20160816; b=yKCWaNKi/ShM79EAyOuXU/9DEyZgTm7Di5vEEKu5nTO7RTAEbboAMFf4xRu4kVN1tV gc+GpgYoJIz4D4bTVBbqJ3oQblzlUqX1/c82TjzCiCGD3h4nMcrQBsWypN0LuwIUixOu HdHh/4JMHoyrqdVgEY1EW/zuw+ZHD03i11UFnuwMHz4D56+CKJKo/elu9CL4mpqUJ0O5 9Z/edICXOMO/uy/jEyFllFdqETIHCiM3vHTwyTfNIul9s13mO0mugDnK1bRhnrUD457m 1kpBgPywaI3961g9n29IXR4XZ6TnxfvRu+fjKee3EYhXSC/7lVWed6Ro6zOnRQAa6UVz zHYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=14Um9X+AZKy34uKDn78MhQmn9Sy052uBC2882vcCZ8I=; b=V8M5wx6LuYsnrOYbbFt/rGbfKMWoLSQ1zwYErGsEYpHlqwlouD71UE8OZ998GH+U2a n7PquVItPzcC+zY6k9WDQvtpq8AldEB1pLGYyB93VFSZEOhKt3hax47YkmFmbONeBOHF vD9UjiSLmLZNgmzk65MIYQL5o3yy4UdLKal7V39YvIMyy4YV5WbVERQwALQrkvsTNIhU 7Lzu2eyX+6yxLM5A+DRsJK8KABpHYIgIcLXMFc/Q0TE4AHR6V2ekTGDtVpKDYhqRrp4h VrRfXaJ8ZK9CY0OA8vV+yKzYcAuD0RIWJp2XtwAbzplreGdx6qd8JKLqmwM39tcjQumQ 69Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WHfieG4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by12-20020a0564021b0c00b0044362798fc7si1623153edb.375.2022.08.26.08.36.00; Fri, 26 Aug 2022 08:36:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WHfieG4c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343859AbiHZOqs (ORCPT + 99 others); Fri, 26 Aug 2022 10:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343829AbiHZOqq (ORCPT ); Fri, 26 Aug 2022 10:46:46 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9B11D86F7; Fri, 26 Aug 2022 07:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661525204; x=1693061204; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1ua1eMzWICE18zPpgUg/mQvWp3yPZXQYmF3anVr6ntg=; b=WHfieG4cHidpIVFW9KGOpbTN3TPPtfQ54avY98gqXh9YBzPQI/USNDve DmgSe7AW1l9T0b2cgMLVtZQ40VpD6NZOc2zfvg4Ue1FT2Z7TK0vKy03vh eXXGhkSapMfc5IEat1sXbf6HEHZdWVVaWk5PBt2NgGsF+Hh6cAHRWnWFB JytyvOC5zAD7RVnyd/Zekju76JV9qPoVJ32E+5bQBC/JzOTKasirTnUak KtwHWZnXP5XKKcRuZfjfXkSco1dsRChNenG94Q+8E+AJHzpsh682A1H/6 AQbi74C9MDf6spMiZY/kvquKow8yUolnOdL5dQkYBiQuQwWJDgZbzJ1XM Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10451"; a="295792964" X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="295792964" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 07:46:42 -0700 X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="671488308" Received: from syeghiay-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.41.100]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 07:46:39 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Lino Sanfilippo , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 1/3] serial: Rename vars in uart_get_rs485_config() Date: Fri, 26 Aug 2022 17:46:27 +0300 Message-Id: <20220826144629.11507-2-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220826144629.11507-1-ilpo.jarvinen@linux.intel.com> References: <20220826144629.11507-1-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Make variable names to match uart_set_rs485_config() ones: - rs485 -> rs485_user - aux -> rs485 Signed-off-by: Ilpo Järvinen --- drivers/tty/serial/serial_core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 12c87cd201a7..9c1bf36b7a93 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -1408,16 +1408,16 @@ int uart_rs485_config(struct uart_port *port) EXPORT_SYMBOL_GPL(uart_rs485_config); static int uart_get_rs485_config(struct uart_port *port, - struct serial_rs485 __user *rs485) + struct serial_rs485 __user *rs485_user) { unsigned long flags; - struct serial_rs485 aux; + struct serial_rs485 rs485; spin_lock_irqsave(&port->lock, flags); - aux = port->rs485; + rs485 = port->rs485; spin_unlock_irqrestore(&port->lock, flags); - if (copy_to_user(rs485, &aux, sizeof(aux))) + if (copy_to_user(rs485_user, &rs485, sizeof(rs485))) return -EFAULT; return 0; -- 2.30.2