Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp588716rwb; Thu, 6 Oct 2022 01:23:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fDVjgXh/0Z3WbSRYpMNwnIyJ4YDGXrPhHYH0hl5NxQ6uGWDkPNwJYLpofJC4l5B5Jn6XL X-Received: by 2002:aa7:81cf:0:b0:561:7d72:73ef with SMTP id c15-20020aa781cf000000b005617d7273efmr3965992pfn.16.1665044617254; Thu, 06 Oct 2022 01:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665044617; cv=none; d=google.com; s=arc-20160816; b=JWLWHrCeoNOlNymQnmEjZiqcDE9L/N8No9dS925Mr87xx0CulwjL9ZZ03U5ginfcT8 XyITlx0Y1/YcAqfbpnmJqEZbr5+VMnzWPk746GWAzaRPGRYULg8lPw6Herk9RAweBp21 HAnHVR2iJr+FJXaB6ChMCbqIlDg9gtZh5wW47OBeR5dvo0JFWNEjrubEtO72ghiG8GPd R7BpaxvJn/e6gPNX8mhCcUCp1vzj8Lfd6WXXkvLoxEUzH1q2+/i16ACw9NCMyyObuL38 d2x6T+gw/CmaM4TUuoE16LzxpQRuP4Pd74+pYa6+3MB41vXe9F8il/mWoVQ/NitSXA/a 2Hgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=vg5fdSt27nju1YMu90IaQhVCaYqVeP3Zg+AYyVq4Pjc=; b=Ocgi2PspqKjD7Fz44is1eaL5PcvXxyN8Z8TiMlm6cc0ynqweVMLkyCaH07BvADNzIb 5dPT3Vog8ynVbW0PfBAgvwPjxSoIee/Z9WbjZcYIexm9nbMZLHjqsUGg7DAufzfgo86y nGHCQNHTvmGMNJur9I2BTJqDeLBNnLaobaqGzIiMk6dOVyAWLyIM9aRHkBkMq8z6MfJU 896dJ7yccDfpb+gI1Ck/hRhcLze7f6bV8RTKSdz11kcvVylEZg7aAZ3ry6PvrCGPdsuy P2klhXnVdsbyp5P7kaxtiICmz5loR0dEEBV41bWn8DzlmVKMiD5tZrsmWKw4sp3Z8T1v 9wwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=PSc6ddZV; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u25-20020a056a00099900b00560bdd654ffsi14447234pfg.314.2022.10.06.01.23.21; Thu, 06 Oct 2022 01:23:37 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=PSc6ddZV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230195AbiJFHpG (ORCPT + 99 others); Thu, 6 Oct 2022 03:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbiJFHpC (ORCPT ); Thu, 6 Oct 2022 03:45:02 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB8BED11E for ; Thu, 6 Oct 2022 00:44:59 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id a3so1390594wrt.0 for ; Thu, 06 Oct 2022 00:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=vg5fdSt27nju1YMu90IaQhVCaYqVeP3Zg+AYyVq4Pjc=; b=PSc6ddZVvE790in4dRYAuLE0lPuvpcAx2b1za+kxfMbWpzp3LwLnmOqOPKnfuNulsn IC9ad3UrKRaztIHCztqH9a4/s8p9iFGdTcrDf8QjSNCLOphYliA2I/gzN7ImHCM9/vh7 j4yOG2ZHccLYozuqez4EbJWsarkmHQHMbxUIlg45iO5ErS0C8VBxkc+3ZP+P2RmUFvH+ WCHyW9UzUSHdGzh7+D9wGEcZKnhgl3pucs5CXjvIlJIA/tsCzJQ+WYazOj7S8fEtkcYJ nsw3UHh8GpAYBx2LhK344xNL0e2bRmYx8i0UsNc7SNup9rXXo9qBLElp3SRupMZYOtGs 8zRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vg5fdSt27nju1YMu90IaQhVCaYqVeP3Zg+AYyVq4Pjc=; b=oF+pHX17BUpgzBkRUguGoCbZK+rxGdR2ar3G8HSpuRV7NNbtx2jMHljNYX/7aKzY1b 6hp3YGTOtg4v+gX8LcZWo3un7oCfL7KESs2at+etqD2UbdytoWdtMQC6Jkp0/YF8p6AO 1Y7n9ACTmHpO5e4EEcs5FKJ9Z8nUgA+f9Z8yFXhHKS5/QLBU4DxcGM8pqegTEcLnvymT LrcrUncAJQ/UO/25OeR6zeZiGDnuYlwGSWORibcGMrKE8VkIPc2SDWZfwF2SBD832ohd SY085hHQuEn2wLDbUMH4e+tqReHnhKAGzzSufYwZKiiuQ6R2zyaWaZy7ainhGRhXiSt0 ayMw== X-Gm-Message-State: ACrzQf1KCng5haIUXl2JXcbDl63nD1Q9qPOOrSBPVYAOiDz7tCWscgP3 M66RTcAcRTXsU5d+3DwtSglmAA== X-Received: by 2002:a05:6000:154a:b0:22a:b8eb:ba53 with SMTP id 10-20020a056000154a00b0022ab8ebba53mr2115976wry.594.1665042297819; Thu, 06 Oct 2022 00:44:57 -0700 (PDT) Received: from localhost ([82.66.159.240]) by smtp.gmail.com with ESMTPSA id m24-20020adfa3d8000000b0022ae401e9e0sm17535879wrb.78.2022.10.06.00.44.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 00:44:57 -0700 (PDT) From: Mattijs Korpershoek To: Colin Ian King , Linus Walleij , Dmitry Torokhov , linux-input@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: dlink-dir685-touchkeys: Make array bl_data static const In-Reply-To: <20221005154852.320056-1-colin.i.king@gmail.com> References: <20221005154852.320056-1-colin.i.king@gmail.com> Date: Thu, 06 Oct 2022 09:44:56 +0200 Message-ID: <87a669o0p3.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Wed, Oct 05, 2022 at 16:48, Colin Ian King wrote: > Don't populate the read-only array bl_data on the stack but instead > make it static const. Also makes the object code a little smaller. > > Signed-off-by: Colin Ian King Reviewed-by: Mattijs Korpershoek > --- > drivers/input/keyboard/dlink-dir685-touchkeys.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/input/keyboard/dlink-dir685-touchkeys.c b/drivers/input/keyboard/dlink-dir685-touchkeys.c > index a69dcc3bd30c..7db7fb175869 100644 > --- a/drivers/input/keyboard/dlink-dir685-touchkeys.c > +++ b/drivers/input/keyboard/dlink-dir685-touchkeys.c > @@ -64,7 +64,7 @@ static int dir685_tk_probe(struct i2c_client *client, > { > struct dir685_touchkeys *tk; > struct device *dev = &client->dev; > - u8 bl_data[] = { 0xa7, 0x40 }; > + static const u8 bl_data[] = { 0xa7, 0x40 }; > int err; > int i; > > -- > 2.37.3