Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp737576pxb; Fri, 15 Apr 2022 10:03:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6eZZV4QMKBIzdkEPHh9cT2VRvd8spbZnj1ahxxF6yflrjGtfBAMt9phDZGIOBfy2GoOWf X-Received: by 2002:a17:907:6d04:b0:6ee:402b:6cb with SMTP id sa4-20020a1709076d0400b006ee402b06cbmr63583ejc.608.1650042203337; Fri, 15 Apr 2022 10:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650042203; cv=none; d=google.com; s=arc-20160816; b=vuvKuKNVeNyqLVaRiFYM5NzXYa4ytWr41tWrUSb/JcHV705ss/pJJwyCsjy3zyK+fk l/G0s15tYQiya9bOs4PtW/ePWiSshg7HNPyyNqsqFjK3v61BMtiOtW4BforaZYbN6oVx tEdwY/zSIsdrU8QRe8nKaq/OVhV3JAhyoVimdbRv6HT3FLI//t+pKcDfK6ABa/BvofXF hC2WCA9SbaGT4HulhhYPvZA9682u1SroPRlupoenRtxJ1OxJvmplKV83tR+u4Qq+wrdG iuTrrNBA+VTcvqWTpVVCY9UA9LE56odsIBYNHyfpxa4AavR+UTqClHbJwTZMul0oUXgA 02rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=26I6FOGQOxy2Z3Nweu2M0q31N/P8BqtXEMkqtJlJNjA=; b=Y0pKibyWqt2C/JoVa5MNcbdapsyb+deb8zLWwSCIWgBdHPOqdhMxDF5A6rVYJ76exu U0CS260fizBZY/gJr1Q2r8EaoPRq+0kiEZVmT9Bv1RNlTNONMkSDsgX1BKvK6K6aG+s5 3e9Xzp53q+sqrkwgzwdV3g7DSFZtdJTTNH/9+06b5cXUu2qKdv9/J+w049JkKpMO/re6 diposHLbcyvBmlJHg3vXvmhKWPidu7KE0cidvReqo44fyeHYZFDFdRllJV6yv25OJSPg +V7Cab+lJDyE8y65lU0Qd7vgZz27QqEyGzcwm14HHUQGbgArdVfh4+34up9zS8LyX4VZ 6zNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VkSIhxbq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb6-20020a0564020d0600b0041c7cde74fasi1650739edb.308.2022.04.15.10.02.57; Fri, 15 Apr 2022 10:03:23 -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=@intel.com header.s=Intel header.b=VkSIhxbq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242912AbiDNMdF (ORCPT + 99 others); Thu, 14 Apr 2022 08:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236509AbiDNMdD (ORCPT ); Thu, 14 Apr 2022 08:33:03 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DF1275E2 for ; Thu, 14 Apr 2022 05:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649939439; x=1681475439; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HRKFubKrtd5FTv5YNfXCxGA3hC7nrwE2jmGRUJNoEfs=; b=VkSIhxbqImI4MG8VND6Ri/KLZJ1hHwzEbP55zwZqwiQHk8ZiNBxdf5Tc UdU2XijSuaZGWHfDUhHLY0JqcQT4VsugY5Iv3tDdbwBqZvpAlaaYl5fZC 1CMSouvnSFpjrPtPudNDp2fDJ/K1pkv4bs1051tQk9Squ1+ZxSoQBDQJa ZsokaSL4K5r4E9yqmqk5N0VoLV9+rmIt0j7ePsqssoHdYrcF3/aSMrF09 kmlWOXEfi4Z7IIt50bqZrJWVEkBbUSzN3RZgRhaScfkJIA5K0jtZj/ewY u5/BwDCJ7FdWj37Imu9T8cxOroiC+cEOsB8XwYj08aS+XkE88oltomG31 g==; X-IronPort-AV: E=McAfee;i="6400,9594,10316"; a="323362145" X-IronPort-AV: E=Sophos;i="5.90,259,1643702400"; d="scan'208";a="323362145" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 05:30:39 -0700 X-IronPort-AV: E=Sophos;i="5.90,259,1643702400"; d="scan'208";a="552662557" Received: from nplaweck-mobl.ger.corp.intel.com (HELO localhost) ([10.249.149.236]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2022 05:30:36 -0700 From: Jani Nikula To: linux-kernel@vger.kernel.org Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, jani.nikula@intel.com, Andrew Morton , Greg Kroah-Hartman , Lucas De Marchi Subject: [PATCH 0/1] add support for enum module parameters Date: Thu, 14 Apr 2022 15:30:32 +0300 Message-Id: <20220414123033.654198-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hey, I've sent this before, ages ago, but haven't really followed through with it. I still think it would be useful for many scenarios where a plain number is a clumsy interface for a module param. Thoughts? BR, Jani. Cc: Andrew Morton Cc: Greg Kroah-Hartman Cc: Lucas De Marchi Jani Nikula (1): module: add enum module parameter type to map names to values include/linux/moduleparam.h | 64 +++++++++++++++++++++++++++++++++++++ kernel/params.c | 41 ++++++++++++++++++++++++ 2 files changed, 105 insertions(+) -- 2.30.2