Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp805787pxb; Fri, 22 Apr 2022 11:31:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTJ2QsImBw9Ihv37rkmbToDwO1ntpkzDzr2R+Zrs4fQeVFqGWq6tTsFLap5UakhQVsRA1S X-Received: by 2002:a05:6808:13d1:b0:2da:7f74:3f45 with SMTP id d17-20020a05680813d100b002da7f743f45mr7415744oiw.119.1650652295758; Fri, 22 Apr 2022 11:31:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650652295; cv=none; d=google.com; s=arc-20160816; b=jIon/8RdXwnOm67G2GcV6A8FPzsssFhy2DM5+/UJJlIaZysRMIEc+ZEf/hdOcLDJFM pPSwrvqc6zZMmXvfeWPP0N0ptpQeUPDXzWN3aYkGFOqGXdsl8nmaEfwDcit0Uwg7VsRL PPWoYqpw6Oin8q/4iVUENgb8ZV+m90yvQhw3yI+gvC/om5SrAUP3ILYE2586SBmxyY1X ZOkewWeLqyLJDDgKKVDKnCN8/4v26f4OX+aUryJ6DeE2jAAaUzMy85XGYUz+G987zVED 1Qpt4xovYbfVaBpCKr3LqJb+yHoWVgkpp0JWONYSn73rBruhBpOW22Z55KQYARFcDT1z j9Xw== 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:dkim-signature; bh=g/9irgCCWI7KgQDtWmFEKD70fZ4JynU21uK/zUgv17s=; b=N5Y0JS0Ie5KPe8rCiCGkz957BmUCyTDNRBfwx+KT7tYWCc+Ut40gGrE8NkIqK8PIqw /5wkwu5/UOjVDs2t4fyR2evVcMVZ02PzKDNAotRJCStBArL8yUK7Cfev+FEfHv5NCa5s pAnneN5/bDTiHL/hp80KhxD3KAimOLDTX2yelnK8O4nELSFw2/8PrK3Mo1cT93G0QMch cmdQtqbLbztEUUqfFybuz+ztTssYPN2+45YxXWtJ7FBEoQb8X/X2vRBp0qoONR5Ldt0Z n0ygjMLlRA0h5oDfRRscNh9t5fvW+mwyFd4daOVy586gX74W/iS8nobS81HadleqXaOT oW9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BZ4yImvZ; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="Z6Y2wW/u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t19-20020a4a8253000000b0032489fe029asi5039829oog.6.2022.04.22.11.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:31:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=BZ4yImvZ; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b="Z6Y2wW/u"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5C235580E7; Fri, 22 Apr 2022 11:00:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387114AbiDUJBU (ORCPT + 99 others); Thu, 21 Apr 2022 05:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387055AbiDUJBB (ORCPT ); Thu, 21 Apr 2022 05:01:01 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB7C220F75; Thu, 21 Apr 2022 01:58:12 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 71AB52129B; Thu, 21 Apr 2022 08:58:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650531491; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g/9irgCCWI7KgQDtWmFEKD70fZ4JynU21uK/zUgv17s=; b=BZ4yImvZ+qTzxbwjenSkfkcQ9L7WRpr27wEm+DjJK/6fKOjEv3qDoDWZIjZ5W8fky83Lhu 3LuDK/rnB7ANS6J3rw1ZgZmYY2s98CIASkzqAAggeIGuUJWJhlmOb/MIPXRGaKcE5KayJ6 750S6O+dyX9YRYNz72Qy1SWOliD3aRY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650531491; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g/9irgCCWI7KgQDtWmFEKD70fZ4JynU21uK/zUgv17s=; b=Z6Y2wW/uLWFCfZnozGoZxodFvjQN/9H6lSqPmRDYmBl5Q9rCb/9yY62DqDRQykVKkA4C0d Pz+XxN1SXaPyW7Dw== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 4046E2C149; Thu, 21 Apr 2022 08:58:11 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 07/10] serial: icom: make icom_acfg_baud const and unsigned Date: Thu, 21 Apr 2022 10:58:05 +0200 Message-Id: <20220421085808.24152-8-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220421085808.24152-1-jslaby@suse.cz> References: <20220421085808.24152-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 The baud rates are unsigned constants. So mark them as such. Not only it makes sense, but they are passed also to uart_get_baud_rate() and that expects unsigned int as baud rates on input. Signed-off-by: Jiri Slaby --- drivers/tty/serial/icom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/icom.c b/drivers/tty/serial/icom.c index 34e716cadb28..85ecc7dfac72 100644 --- a/drivers/tty/serial/icom.c +++ b/drivers/tty/serial/icom.c @@ -47,7 +47,7 @@ #define ICOM_DRIVER_NAME "icom" #define NR_PORTS 128 -static int icom_acfg_baud[] = { +static const unsigned int icom_acfg_baud[] = { 300, 600, 900, -- 2.36.0