Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp259684ybh; Wed, 11 Mar 2020 00:18:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt82qxDkcBs3EgVWB967J0vBU0rzhkipb/xzYT7N8D2qCheZ9ADYU0V7lgDzW05mDfJHDIV X-Received: by 2002:a05:6830:13c7:: with SMTP id e7mr1280341otq.5.1583911092872; Wed, 11 Mar 2020 00:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583911092; cv=none; d=google.com; s=arc-20160816; b=bg0mAURuBhJkRdQIaKXC8Pw0T4Y4Wr+iOSfK7Mxv/D6l4agD2vUBAqkuaSeq+mqynu kCmEy3XAsZmi9hXK68XZZwlVoh0rloyZNfS98rPOpQptfqC7Gdf4wnXks4L47+N4d0G+ 7IxvF35Jb1oIkqYhkXSbMb3YY8q6tct0npSb10i6Csvw1aRq3tErsiT14wmgPVAHX9iO KjngUjT2MVx9/ClAFe9mhlV9dXKJCcukXYelgc6nov6dCF3TSdnx0x1wRDyZneSFswyL 3zSf0NiiXBsJ7LcB8TuR/Ook7vEen21g0RIkjIuTw4MOOOgovlvR+UyxsgMN0XW5MnEH AzAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=squBFUjN3FHwduE2kZhvBbwfKol4LXAfrZYrdHNYjik=; b=T+7OBqWl1CGiwVR9yS/IkGJuxuBJveIc1ZFpW41tCkQcnWNy0slifBbsGUlbVNz6WC 4yEo4Sw948C3pGndvo5LGF4vswpg8ai60Py8oKq8waELEfplR0JhV7qGHZGXQxPdhQXa yN1v3ZhpdKLPHe0ntInMVugDSQQJNk8MJ7n8FjWQfXqgaAlnWqY1SzAiiDz/Q+SkD97K cj7RMqIhWyLaOCOOmPtPYsgC896FoIcgtnyQDJs+GfX7dp2TtcFgIe27nLR3w6equMyJ k+NPQpEOOP+GyRguU3nIJaLxfMHy4vGiI8rYPdjrG2mXKNGVaUUpXC5eIM1XuWhTzufT ZxVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5VX87u4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si729014oif.85.2020.03.11.00.18.00; Wed, 11 Mar 2020 00:18:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K5VX87u4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728349AbgCKHRj (ORCPT + 99 others); Wed, 11 Mar 2020 03:17:39 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44792 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728122AbgCKHRj (ORCPT ); Wed, 11 Mar 2020 03:17:39 -0400 Received: by mail-pl1-f194.google.com with SMTP id d9so649836plo.11 for ; Wed, 11 Mar 2020 00:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=squBFUjN3FHwduE2kZhvBbwfKol4LXAfrZYrdHNYjik=; b=K5VX87u4t54A+svwF9a/rHW7ErlPK7KdQ4IdOs39W5GpUTjd2Fx2fg9ehpzTzIZpXY MSvVfbZzx9lmj5dy/gGe3tj7jTwC+pbLhMaf8SdaLyQHs3F89ccZXR57D6XVv6hmexGF I/6BsEnALel6CV7MPCsNk7ANfDfZg+nffvunnr1Ya1mpsLK0XeL8Qg/8/1W86hPwBPe8 GTb+Ikxw3QkV8K3n40BFuBCek7sRLYfZ28DMDUpJMVVbXtu+St1Syh6suGUhnQoIC7aG OjWI3rbyknp8mXahTQYkxvOo4Z0iqH2nbg02tdlhHcH1WLwAsKXqHm0aUAULt2vM7cqB w/IA== 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; bh=squBFUjN3FHwduE2kZhvBbwfKol4LXAfrZYrdHNYjik=; b=OnrRqBwCMBCcLlhkBZ36/7I0mjzIOrhFfGmK2WLpOJwB1a0Mzfb717QNwN5BXDhVRS PoUjsCXdGFWEfNDX3Q2I483idi2suBj826deZGjQAWENwDwmEyKS/0r+XV8SyFsMKcuj qCdbjRNbuLV7ltpPnTrvTu/UENQI4QZMyL94zZqkR1iLXXr969q8TDcTJPQilbJvPsdJ tMOfuQI35UCSMNnFFbySebYQ7GVdsi3OzjfZJRA0J0NWapu2pMkLDDWvN96xglSu0z/Q 3Zm8macbx/OKH/Q51lZXStP6JyZnqYggPHMDbnhzKF9TtPuzRu8OwWKWNDarf7mT5dJk n3/Q== X-Gm-Message-State: ANhLgQ0xUkJt2NKmVoKrElYOkYCltpnt91jkjbCcVwUmwWhcK9QKGMJM PsE5fqmtSyxmuR72Eltbxl5aL+ce X-Received: by 2002:a17:902:7c0d:: with SMTP id x13mr1803377pll.93.1583911056029; Wed, 11 Mar 2020 00:17:36 -0700 (PDT) Received: from ZB-PF114XEA.360buyad.local ([103.90.76.242]) by smtp.gmail.com with ESMTPSA id g18sm4352904pfh.174.2020.03.11.00.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2020 00:17:35 -0700 (PDT) From: Zhenzhong Duan To: linux-kernel@vger.kernel.org Cc: jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, miguel.ojeda.sandonis@gmail.com, willy@haproxy.com, ksenija.stanojevic@gmail.com, arnd@arndb.de, gregkh@linuxfoundation.org, mpm@selenic.com, herbert@gondor.apana.org.au, jonathan@buzzard.org.uk, benh@kernel.crashing.org, davem@davemloft.net, b.zolnierkie@samsung.com, rjw@rjwysocki.net, pavel@ucw.cz, len.brown@intel.com, Zhenzhong Duan Subject: [PATCH v2 0/2] clean up misc device minor numbers Date: Wed, 11 Mar 2020 15:16:52 +0800 Message-Id: <20200311071654.335-1-zhenzhong.duan@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some of the misc device minor numbers definitions spread in different local c files, specially some are duplicate number with different name, some are same name with conflict numbers, some prefer dynamic minors. This patchset try to address all of them. Thanks Willy and Miguel help building test on ARM arch, no new change on ARM part in v2 so it should pass build on ARM obviously. PATCH3 "speakup: misc: Use dynamic minor numbers for speakup devices" is dropped in v2, will process it separately if there is response from maintainer later. v2: PATCH1: keep HWRNG_MINOR name and fix RNG_MISCDEV_MINOR per Herbert. PATCH2: fix typo error with PXA3XX_GCU_MINOR per Arnd. Zhenzhong Duan (2): misc: cleanup minor number definitions in c file into miscdevice.h misc: move FLASH_MINOR into miscdevice.h and fix conflicts arch/arm/include/asm/nwflash.h | 1 - arch/um/drivers/random.c | 4 +--- drivers/auxdisplay/charlcd.c | 2 -- drivers/auxdisplay/panel.c | 2 -- drivers/char/applicom.c | 1 - drivers/char/nwbutton.h | 1 - drivers/char/nwflash.c | 2 +- drivers/char/toshiba.c | 2 -- drivers/macintosh/ans-lcd.c | 2 +- drivers/macintosh/ans-lcd.h | 2 -- drivers/macintosh/via-pmu.c | 3 --- drivers/sbus/char/envctrl.c | 2 -- drivers/sbus/char/flash.c | 4 +--- drivers/sbus/char/uctrl.c | 2 -- drivers/video/fbdev/pxa3xx-gcu.c | 7 +++---- include/linux/miscdevice.h | 12 ++++++++++++ kernel/power/user.c | 2 -- 17 files changed, 19 insertions(+), 32 deletions(-) -- 1.8.3.1