From patchwork Thu Apr 14 12:30:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 12813468 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5DC2C433F5 for ; Thu, 14 Apr 2022 12:30:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D87E10E2AF; Thu, 14 Apr 2022 12:30:41 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0B94E10E1F8; Thu, 14 Apr 2022 12:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649939440; x=1681475440; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HRKFubKrtd5FTv5YNfXCxGA3hC7nrwE2jmGRUJNoEfs=; b=FbKyHCGEGU5Wrc8m67otRsB6mK7ge0JqozdfKdIunn4mevnjuKeBgOtL 1DpYODvHPsSvfNqGyZOLCR2ndFiYFkpUY9Eu6fefxiA0398lp7nT8MqH5 4m9d8Lenr+Jeu3OkoRsQlo5iN88GpDfFrkt4wGt/xv82xDn5wv7aPB3OD 3Jwapw6Z91iPEJdTkZfMf4W+y4COcRS8P/DeqlYyUc11EKRo3zeCsE3j2 OsE2glutozpkvJpHrdCUslEuUFU2qwC8+cWYYNTRcICIQKFreQsZyJ7g5 7fE9N7IrzAwXSRlweHFr4a+/Tb1s4y6UujTzHXQ2H9qqIyNTZLOZ8ZHuU w==; X-IronPort-AV: E=McAfee;i="6400,9594,10316"; a="323362146" X-IronPort-AV: E=Sophos;i="5.90,259,1643702400"; d="scan'208";a="323362146" 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 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jani.nikula@intel.com, Greg Kroah-Hartman , intel-gfx@lists.freedesktop.org, Lucas De Marchi , dri-devel@lists.freedesktop.org, Andrew Morton Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(+)