Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2008732ybh; Sun, 8 Mar 2020 19:26:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvM5Z6jiYtTUE+C5jI2ACY6n7Ob5d+nNhP3zBdi13ITRCroOPCkx+rt4U8VeG4l2pmU6dbT X-Received: by 2002:aca:bfc6:: with SMTP id p189mr9995484oif.21.1583720771838; Sun, 08 Mar 2020 19:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583720771; cv=none; d=google.com; s=arc-20160816; b=RlTxJ7NM5nckF9KcUd6Vd2LKvRdmNf4qb5DV4jBaUBy9lXxtlgljLOe9iUoyPiAL/x 8q8fqbWSkuYMufSoS3OlVB9PAVA1jsmYqHKRcGEaXypKe4phPewvGPJXuGSWak4wPMEz ttj4fQNgIcqp1R8oWos7JSI6EH7axOxqv7L8zXLyO40nROiz0qor30iIHgK0Kg40D8Hb NJ/9WACcXWb+0o5mhNaw7oxBBXtDEfefvY0l/ju2/zja/UEtWCuulDmXZWQJea9EIT5F ANREZy+wkCxaHlTOgNg88RKTprrOSN4PaN6HpE9SJEcduBR2lIQSJ0UbBGLc/AIxffrJ qwqQ== 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=WLxH7ad0XRd0xt+wbIowBUivNdpU+jvJokFmcSJMpU8=; b=qG7+5H4K3wSWdozUB2Ux9HHBJwsubym3guyDjJImIlOUNDy6sPdRvG5qpa/E8RGpKV +P+hAyS93W0vq0xbXNiLX4yCTnHs+Dck1NYOjZMIoyl5BG9ElgFA9WvEFaE1iPVyOcAd U+8vkpKOoXLznjbOLtTxY+0IYY2qV2LRD3LSIPVq3tjaKm9va7BtO4yGmWXA2ZG7JdBw YVBuvKPWJQoM9ThiEio6UWeuC1olqr2AGWb0KelKiM9l33VMaWc0D+VT22L76b3J3yEY XNDQOeC4Lf5d/ntSUUjkimxrG9tCs/OL18GsVlINmeJMix03+t5Zn1FuzhUh83wUx986 zA/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZU5fwAZK; 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 l75si988017oig.59.2020.03.08.19.25.59; Sun, 08 Mar 2020 19:26:11 -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=ZU5fwAZK; 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 S1727070AbgCICSJ (ORCPT + 99 others); Sun, 8 Mar 2020 22:18:09 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41554 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbgCICSJ (ORCPT ); Sun, 8 Mar 2020 22:18:09 -0400 Received: by mail-pl1-f193.google.com with SMTP id t14so3344196plr.8 for ; Sun, 08 Mar 2020 19:18:09 -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=WLxH7ad0XRd0xt+wbIowBUivNdpU+jvJokFmcSJMpU8=; b=ZU5fwAZKIgqaNdwVLrK/Xjt8rxOeawd5ZJVwsFEs+For+lnZYeVydn5MuI74RojCIv 2UEb/lsPJ4kGmLqJAAPzr1qxL/MdU0UOSdqHs4Lc4MDOK7mPSBYW8gDX1ZQcElM7a4Ap Ku2EQpa1/3bevO11AmrDR5Vm78HEZyNfQ5loyg00hCFbI+wqwkapz0jaTyxu9yKsYFHs cRT9B5UGzfi4NoR2R0gB6qUafL5rdD/fsqjSw+ijJX3GLgX9vJnbX9w9BIRsSCMLEK0h aC7GMkmCIvR01htkt2hvt3i4oYqkqwryP66mWg9ETxIM5gyzLjzrdHAzH6RawjO2LTZL fY9g== 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=WLxH7ad0XRd0xt+wbIowBUivNdpU+jvJokFmcSJMpU8=; b=Pm7AlLzN54YWKX0MlAHzwr9LfH30muRkv27ztmeTepD1UsT/SCGLmEPKtlqzxIJmBG 6qqGiIxnkt9C8B8xr76N0vzGyZEaUkWaYuOVIGzbkks/WUftRUjy+qnOgZbzHBO2PMas c8KzqEnA/Q6Q7o5ToNv4fiD1dZRDuKOFU807VFHcZvxbx3RO+tHg8oX3rIE9qV1mZt9P iV6vpW+UVIjpBq7IRw+HC6i5Uol/yXB2Rv997y4CMY7yCOlsErTVkxisr+XNlty6dORO sph1dC8Vk5Bh/KEVBWoFGv73KIVFHb2xLultHQCZgCFAb0BFUXpbel5d9tt1YIgEOzig lZIg== X-Gm-Message-State: ANhLgQ0MzPRx6PUKxrGSNtgqLqcb4efj5VtCGtshYB2tGyYwWTGhthp6 9dsObZdHxV95Cx2+A80c4ieIFmpD X-Received: by 2002:a17:902:760a:: with SMTP id k10mr13733390pll.306.1583720288242; Sun, 08 Mar 2020 19:18:08 -0700 (PDT) Received: from ZB-PF114XEA.360buyad.local ([103.90.76.242]) by smtp.gmail.com with ESMTPSA id r12sm42394043pgu.93.2020.03.08.19.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Mar 2020 19:18:07 -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 RFC 0/3] clean up misc device minor numbers Date: Mon, 9 Mar 2020 10:17:44 +0800 Message-Id: <20200309021747.626-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 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. To be honest, I didn't try build on arm or sparc arch which some drivers depend on as I have little experience on cross-compile. But I still checked the patch carefully to ensure it builds in theory. Appreciate if anyone willing to test build on those arch. Zhenzhong Duan (3): misc: cleanup minor number definitions in c file into miscdevice.h misc: move FLASH_MINOR into miscdevice.h and fix conflicts speakup: misc: Use dynamic minor numbers for speakup devices 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/hw_random/core.c | 2 +- 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/staging/speakup/devsynth.c | 10 +++------- drivers/staging/speakup/speakup_soft.c | 14 +++++++------- drivers/video/fbdev/pxa3xx-gcu.c | 7 +++---- include/linux/miscdevice.h | 14 +++++++++++++- kernel/power/user.c | 2 -- 20 files changed, 31 insertions(+), 48 deletions(-) -- 1.8.3.1