From patchwork Wed Jul 15 09:32:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235577 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp452821ilg; Wed, 15 Jul 2020 02:32:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjUQxqNXj2wi514B1EWKp+OyiU3OTPrBSLbTAfLYAZYl8iRG04pdZv1GPly0XdcJnfIpsk X-Received: by 2002:a05:6402:158d:: with SMTP id c13mr8846032edv.103.1594805559258; Wed, 15 Jul 2020 02:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594805559; cv=none; d=google.com; s=arc-20160816; b=apaA8h5dKkCfmWqsk7migP4xI3fLqLvsgiqVXSCWqwa18hqo20VeYPgHawNJJtbrKJ mLUCcCCRRRAUPDI4oClyLqiR7S5MEksT/rQLyyY+7OiJQn/+sxoNVfkB+3M951omn3vW P8T6md0/jhiou6luNgsNJgWVnrUq0PdSuMlQOUfILREsAYDSmGubEk3SXL4PiRjM8bkQ hPS/E+3lGG8O5R5qrul5th1rhyaWHGStmq5F3PHviu0B7oQodwmJgNpc4cP7IAhpIhA3 PFjHbQDuQSx5lqtSAt/WnMDvcvOdImIbQVjUwGVs1awSXIuPr19y5D3QDmIYOesNCaN0 gE0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8U06NLcMENL/oYfcJzreTwouhkL9v7k29Tx6r8ox8+8=; b=vgknYb4li0T91jf0oTFM7qSf/y3qEDLfbs4UBqgk5YI38IblSa98g8B9tCpRF6UiX+ MCcIRrWT+sjwxcleFSas/PC2h6TTaN59s4MUyvQh0o9KI3DAfUPfF60ntoWdPUo6vNYd PBVuuAA4hPy2rdVSfdiHuuVo1ouOZqsFTcuI0W/dr9vi6eePGcROoLDeKs5cfriUjHL3 nYZZbUVZ2IrIsBPKDcDqWjXxao59114dnKIH5XJFFqJ+1VDSK7+w6CRr2tYPtdQ49GVk VTz5dW/Yr2ysKkNlo7Wb6iUYQhEwrzl9RNKT5Cm3J/DxSPPgyBlCmcXkeOkF2Z4sFKHl tlAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aiY+ovWU; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s24si939805ejd.395.2020.07.15.02.32.39; Wed, 15 Jul 2020 02:32:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aiY+ovWU; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730828AbgGOJcZ (ORCPT + 5 others); Wed, 15 Jul 2020 05:32:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730804AbgGOJcX (ORCPT ); Wed, 15 Jul 2020 05:32:23 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F6CC08C5DB for ; Wed, 15 Jul 2020 02:32:23 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id f139so4867518wmf.5 for ; Wed, 15 Jul 2020 02:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8U06NLcMENL/oYfcJzreTwouhkL9v7k29Tx6r8ox8+8=; b=aiY+ovWUMb8mZ9RQ8izdZPW2TqncCoThpGN6EUuolCrmTshY+liAvzgbIZT9H70/Qt CXLaIJsHhX4rZIfgAemVCIHPettcFED06oqVrq9g2I1DINMPdqWOPqTeQvYP1gyzhd21 uac3QqaBoTvc4AqlqerJImwCaqBy0hDdtf2f9NMJktRs0ZbfBM9rK2EtUEI+LMwRC7Ae brrBADWqEhBR8u3u18co8QNw07W3lWqMxL3ilnvvHo94FHFs7PsjZVU7LnS2yH9R+IMU W0w0ZIjY5oxH8JJHjc4cGq/M+3mvKO3eVYbBC5iBH6NPwEWrBEUUY5rkJQ6sBIFmL2k3 wmGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8U06NLcMENL/oYfcJzreTwouhkL9v7k29Tx6r8ox8+8=; b=QEK2OeoTUeI3EjqVyTfts2+0CkpteZOsN1CGIgMoONfoUMtz/Gdj8VzHeVy2NBK7/T 81Ot1JHfBEwSon3+XD8g+TNURTV7MOHyAcFmfhTwP62HWWngweD12zMwNWERxvxDYeIh sc13KEbAEUV1wKlX++lkxztKInwNS3sAURhxXmj4ICJP4pefg2rL3ZEwgAEs+JBExFGb +cdHzLgTA94kwYmEXqekTAxYsdUmFiHLgReJm4/DbGMywrmwJEAV8O/zRBqYXNPISNuu t3cnz9pF9HNGsvYCuAYCD7FWbImcgd5ChS/fSox2bKuRSZGbgL40puMdwIjjl7mgFNY0 CdIg== X-Gm-Message-State: AOAM533LKv8BQWQtSbkLYqRN/ZdSoZqntIbz+BxXY7UKBrZsXnxtSZce X8eOHgYbwOks8zhIZh8TAa4EnZfU7Gg= X-Received: by 2002:a1c:e0c4:: with SMTP id x187mr7496480wmg.153.1594805541691; Wed, 15 Jul 2020 02:32:21 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id s203sm2686991wms.32.2020.07.15.02.32.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 02:32:21 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Thomas Winischhofer , Joe Perches Subject: [PATCH v2 7/8] usb: misc: sisusbvga: sisusb_init: Remove genunine unused static const arrays Date: Wed, 15 Jul 2020 10:32:08 +0100 Message-Id: <20200715093209.3165641-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715093209.3165641-1-lee.jones@linaro.org> References: <20200715093209.3165641-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org These are not referenced anywhere in the kernel. Fixes the following W=1 kernel build warning(s): drivers/usb/misc/sisusbvga/sisusb_init.h:171:29: warning: ‘ModeIndex_1280x1024’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:170:29: warning: ‘ModeIndex_1280x768’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:169:29: warning: ‘ModeIndex_1280x720’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:168:29: warning: ‘ModeIndex_1152x864’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:167:29: warning: ‘ModeIndex_1024x576’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:166:29: warning: ‘ModeIndex_1024x768’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:165:29: warning: ‘ModeIndex_960x600’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:164:29: warning: ‘ModeIndex_960x540’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:163:29: warning: ‘ModeIndex_856x480’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:162:29: warning: ‘ModeIndex_848x480’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:161:29: warning: ‘ModeIndex_800x600’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:160:29: warning: ‘ModeIndex_800x480’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:159:29: warning: ‘ModeIndex_768x576’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:158:29: warning: ‘ModeIndex_720x576’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:157:29: warning: ‘ModeIndex_720x480’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:156:29: warning: ‘ModeIndex_640x480’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:155:29: warning: ‘ModeIndex_640x400’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:154:29: warning: ‘ModeIndex_512x384’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:153:29: warning: ‘ModeIndex_400x300’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:152:29: warning: ‘ModeIndex_320x240’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:151:29: warning: ‘ModeIndex_320x200’ defined but not used [-Wunused-const-variable=] drivers/usb/misc/sisusbvga/sisusb_init.h:232:37: warning: ‘SiSUSB_ModeResInfo’ defined but not used [-Wunused-const-variable=] Cc: Thomas Winischhofer Cc: Joe Perches Signed-off-by: Lee Jones --- Changelog v2: New patch drivers/usb/misc/sisusbvga/sisusb_init.h | 31 ------------------------ 1 file changed, 31 deletions(-) -- 2.25.1 diff --git a/drivers/usb/misc/sisusbvga/sisusb_init.h b/drivers/usb/misc/sisusbvga/sisusb_init.h index b79bdf989933f..80ba458f28cb0 100644 --- a/drivers/usb/misc/sisusbvga/sisusb_init.h +++ b/drivers/usb/misc/sisusbvga/sisusb_init.h @@ -147,29 +147,6 @@ #define SIS_VIDEO_PLAYBACK 0x02 - 0x30 #define SIS_CRT2_PORT_04 0x04 - 0x30 -/* Mode numbers */ -static const unsigned short ModeIndex_320x200[] = { 0x59, 0x41, 0x00, 0x4f }; -static const unsigned short ModeIndex_320x240[] = { 0x50, 0x56, 0x00, 0x53 }; -static const unsigned short ModeIndex_400x300[] = { 0x51, 0x57, 0x00, 0x54 }; -static const unsigned short ModeIndex_512x384[] = { 0x52, 0x58, 0x00, 0x5c }; -static const unsigned short ModeIndex_640x400[] = { 0x2f, 0x5d, 0x00, 0x5e }; -static const unsigned short ModeIndex_640x480[] = { 0x2e, 0x44, 0x00, 0x62 }; -static const unsigned short ModeIndex_720x480[] = { 0x31, 0x33, 0x00, 0x35 }; -static const unsigned short ModeIndex_720x576[] = { 0x32, 0x34, 0x00, 0x36 }; -static const unsigned short ModeIndex_768x576[] = { 0x5f, 0x60, 0x00, 0x61 }; -static const unsigned short ModeIndex_800x480[] = { 0x70, 0x7a, 0x00, 0x76 }; -static const unsigned short ModeIndex_800x600[] = { 0x30, 0x47, 0x00, 0x63 }; -static const unsigned short ModeIndex_848x480[] = { 0x39, 0x3b, 0x00, 0x3e }; -static const unsigned short ModeIndex_856x480[] = { 0x3f, 0x42, 0x00, 0x45 }; -static const unsigned short ModeIndex_960x540[] = { 0x1d, 0x1e, 0x00, 0x1f }; -static const unsigned short ModeIndex_960x600[] = { 0x20, 0x21, 0x00, 0x22 }; -static const unsigned short ModeIndex_1024x768[] = { 0x38, 0x4a, 0x00, 0x64 }; -static const unsigned short ModeIndex_1024x576[] = { 0x71, 0x74, 0x00, 0x77 }; -static const unsigned short ModeIndex_1152x864[] = { 0x29, 0x2a, 0x00, 0x2b }; -static const unsigned short ModeIndex_1280x720[] = { 0x79, 0x75, 0x00, 0x78 }; -static const unsigned short ModeIndex_1280x768[] = { 0x23, 0x24, 0x00, 0x25 }; -static const unsigned short ModeIndex_1280x1024[] = { 0x3a, 0x4d, 0x00, 0x65 }; - static const unsigned char SiS_MDA_DAC[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, 0x15, @@ -221,14 +198,6 @@ static const struct SiS_St SiSUSB_SModeIDTable[] = { {0xff, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} }; -static const struct SiS_StResInfo_S SiSUSB_StResInfo[] = { - {640, 400}, - {640, 350}, - {720, 400}, - {720, 350}, - {640, 480} -}; - static const struct SiS_ModeResInfo SiSUSB_ModeResInfo[] = { {320, 200, 8, 8}, /* 0x00 */ {320, 240, 8, 8}, /* 0x01 */