Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp485020pxw; Fri, 8 Apr 2022 12:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzS3t043xir0c1uyk51fNbFRajAmExw41PcSbN7xGaEbqJXIiIPhbPMO2ustZ2sbj7UzpKW X-Received: by 2002:a05:6402:354d:b0:41d:dfe:6a8c with SMTP id f13-20020a056402354d00b0041d0dfe6a8cmr8757032edd.286.1649446388833; Fri, 08 Apr 2022 12:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649446388; cv=none; d=google.com; s=arc-20160816; b=iR2MrDdXluYyAQvleiDaURpLtrGTTz2mfC1fU1CUBKVPi6tBqpICegtoptKxQG9gFj w45jSuc0SQZOjA/LjB2jYa6siCDihdXUwYqAIosoXuTzu6yY+laDv2yeLU1ep9YG7sYS tzL5MeOXZ8SerDPKtQVpaCKle09F6f9m2sXbP+3hBTdNzkTOSEdcL7mqMiurSUSVnXDa aP4GrgJG+sWw1khh3+Lit12fRkV2JfLnr/F9s2+Zt/Ow92qhYgthTJSETOZaLXL+UFt3 qIrbqlNcdVXrDINy5QW+DEe3zzzuhc9lvWeGZQWO0lqOiX5y5wIJJQ8GenMaSMCWM6Us HWag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=IkU27LeDLz1RvhbmUhGboZx0hYH9VeuwztKc/NAi28Y=; b=serUf0ugaynlk8LEC9zJHYdOPtE0WQdUJNUmPoqCjyTufUbNsMh3zf0sIR3A132H6q iUMUxHp8leDWlpvYJaAs/auFF02qFgm39GIBhMzHOWlTYaHvlq993WbgbToAF2ADsYih UsaiBhQpf5k4HDpbnCyYp+Mx0LpoCjKyZygRzdNeiGuOOcSIbVlIiUXyoPRmVH//YaBw OVTjmoetk2bBPO/SZAzGuoWXneLekb4R0t95bqZKrkyksoLXpvLPh/JCw6DP6iLIMwDB vitA4bz+wdwNl8zjmTfoTQWw0XH+ZQeENGlYJ+TWi6WUUlusmv80BjlmOXPQmtHOH0Rb 4KKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZgjJSDCT; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o13-20020a1709064f8d00b006e82edbd3easi1564535eju.757.2022.04.08.12.32.42; Fri, 08 Apr 2022 12:33:08 -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=@gmail.com header.s=20210112 header.b=ZgjJSDCT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237726AbiDHPo4 (ORCPT + 99 others); Fri, 8 Apr 2022 11:44:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232562AbiDHPoz (ORCPT ); Fri, 8 Apr 2022 11:44:55 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E3DB8A312; Fri, 8 Apr 2022 08:42:51 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id t21so9174547oie.11; Fri, 08 Apr 2022 08:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IkU27LeDLz1RvhbmUhGboZx0hYH9VeuwztKc/NAi28Y=; b=ZgjJSDCTKUDLDc3NBo4hhtsyBJmI0DCpouMvDza23ZSEfWsBN65jJJAXiNOoGmJEPB PHdneJ8eKLEtGwpawftqCwu2+NObvHFymZCi0xkuTZYDjX7Ab5Lm0VsmtVq/L7mL8M0s bCre+Pkrm/pbVlxEjwBsxsWNLB0F+spcVIXmToy4Y7pNWp/XKEZ18R/H/5dBX1N4VA81 Q+uuBQ34KDX69pvfMo3gLAEkpolBKD/1kJ7ANtRRd+QiCpSme04heEM5nX1CvKUjYc31 2Y36vcD6NLOyPMzucqkZRqgsVTe3aA22He/aFbnEAmPsd21qksOjxlA90j3D4BZ6CQ39 GgTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=IkU27LeDLz1RvhbmUhGboZx0hYH9VeuwztKc/NAi28Y=; b=Sv5q5auHjZKWTfHF+KHKj5pvEmO9R++83Y7ij1JeXlw7CqVeVNfpUKFuSff2ZGxIsT 2Db4QW6BHFHpU3+KiPGZ340JRuFxIeaukFkdzADW98cNJzQ/baL4uoFr0E9piUC2NDSN 4u7a57eRLXHJyii1od6agjCkgNES6vzZZj0Hr84XiL0Qi19i6+gUWPxq/Az8qcMeZJXv sDhxUNGOZeUvv/ZHlx8jc6OowpQFUdA3kg6+/6yD+fnjqUEFXCiWif+1X59kCh5dZVsS Nik2T16AvjUYGS1WDtJXFw1RB755R1IKcQIf9zw4f3Fn/NilJzLn+hrRan284ECJTG7B G8gg== X-Gm-Message-State: AOAM531OYdVPRAzHjy1SN8ikHmwUmbOSai0aeBHc1emNAEMyDNlwP5Cz 3yHb+bUBDtWUcQnLcnrBzb4= X-Received: by 2002:a05:6808:11c2:b0:2f9:b58f:5ac7 with SMTP id p2-20020a05680811c200b002f9b58f5ac7mr135549oiv.132.1649432570787; Fri, 08 Apr 2022 08:42:50 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 1-20020a056870104100b000dd9a2eb20asm8843248oaj.21.2022.04.08.08.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 08:42:15 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 8 Apr 2022 08:42:00 -0700 From: Guenter Roeck To: Michael Walle Cc: Xu Yilun , Tom Rix , Jean Delvare , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Paolo Abeni , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, David Laight Subject: Re: [PATCH v4 1/2] hwmon: introduce hwmon_sanitize_name() Message-ID: <20220408154200.GA105453@roeck-us.net> References: <20220405092452.4033674-1-michael@walle.cc> <20220405092452.4033674-2-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220405092452.4033674-2-michael@walle.cc> X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Apr 05, 2022 at 11:24:51AM +0200, Michael Walle wrote: > More and more drivers will check for bad characters in the hwmon name > and all are using the same code snippet. Consolidate that code by adding > a new hwmon_sanitize_name() function. > > Signed-off-by: Michael Walle > Reviewed-by: Tom Rix Applied to hwmon-next. Thanks, Guenter