Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1266038lqm; Thu, 2 May 2024 09:31:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTMfACqbmwxeYNP2qB2HHNaPFwEOJthscyXTgrIv3MZI5aXaVicqVbeVdjqov0VktK3cWEwyhJyHi0LOK9fZhP3jSSeUN1yO6LFcxkfw== X-Google-Smtp-Source: AGHT+IE/6B/Hqzy4+UzclewB2/JR+oSdTBpjwivL8c5JvEmgnf+mtdOJt5Kb696qAKhsuaF5wFTn X-Received: by 2002:a50:8d5a:0:b0:572:7bae:7e74 with SMTP id t26-20020a508d5a000000b005727bae7e74mr3554415edt.32.1714667471748; Thu, 02 May 2024 09:31:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714667471; cv=pass; d=google.com; s=arc-20160816; b=OTuJl4ZLMLpRAYJz36Rh4Xt0fkYmSRsz3dUTSWeRUVZhwlVGYmQz/bMCUyv6sGL8dd hq/JjvRxAtAnpMhE0SnN//g78dw5gGnZIKHhXV2TvDAGMNDB/ejBnQ5AJLq9KtnEnuFi NX9nVW+XvH2gCJRKtdjpFrN2aW7+7xqgT1oSYa76rCIe881bjU+wLXuOaHqmCVxOjFH0 NEo889Fg1rYgM27q+spRWH3J4tERWHEoCaBfWY62fgxsT9gixc5apBkCiPd4HydZAjb1 XobuXPNyFlHO4SldafLUrqYK9Kztvb8jeayLgmsJf0KH6FI6MUjkNeQ5dDoE1cGkgBO8 tY7g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=VF57B/xw0oUlWQRex3Gc5BwlwzzPx1Jss71WKlk4wrk=; fh=w8p0d530dO8es7kuSZ5Mrlt6u+a+7fEE9Bsk6odLPqc=; b=p4LFv05t0q0A/vJT93zNdI1Nk42agA5akodPkslq1u0TI0/YI0mA0cbDCsNtEkGkQX r5ajsgaeNK0a7eaZCq0xb93RfHL2YnooAClMe+877uO6UNKoYBcRrFCRZYXMiFEJNLLM JIVaE0EcsCk1DakESkIUaematxHL26/HxCUY+usr3qlG0ovkqEDNrIRlcdqTuYrxDbrg PQvYz1wntZH1MS69LO+NdFMxJLfJuTPCanDdKsIVJtOtR4YYCDl7zJlQ2pWjTx7RQlji T0RZxhtbsb4fvZbJ6e5moZSRI9KaBwoTq5OhxVhMpU+NC0fqQLHTGPkP5omUFzwoeYyM DhUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=rhNipQEd; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-166728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m5-20020a056402430500b00572a8a201c5si675167edc.668.2024.05.02.09.31.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 09:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=rhNipQEd; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-166728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166728-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 787521F214C9 for ; Thu, 2 May 2024 16:31:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1501168B1E; Thu, 2 May 2024 16:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="rhNipQEd" Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC437211C for ; Thu, 2 May 2024 16:30:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714667456; cv=none; b=mqttUKy0tjfklWlJA4tUcudIScepVfdu7o4QAF1SCinca+5ZJqzD3BA3s7muDrQkDtaAYTZZAk7s3UrAvVJ3Dbb1sQXFSJPNAR94NEAGw2QwsB39+B8VGbVWIOwMAZ9/9UBzvHfaR9cCbyIZYbOqiqX90/n/BlRJPVmYasRso9E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714667456; c=relaxed/simple; bh=FDs8zOxUdfobTpJKR/H15bW4BvIDRf4R69hj+7xfUXQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ezdHOhAhUZFOwhX17zuH3gFvaSbg/pdP25WOdgJtxYOdtoEDYYQUqJO3b4dHyBAw35QjVxhaHQoiHXZU4/5x/Mxm9peQ91pg2zfL4FUakNXgjAIkrHKQuSjjWaH9EVf6DCJspva49DaZYWe9Ujy9NAmdnqDiUh8qwDv4ALi0Ngs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=rhNipQEd; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=VF57B/xw0oUlWQRex3Gc5BwlwzzPx1Jss71WKlk4wrk=; b=rhNipQEdFyrhaNtY IR40TiPgAAIfnwHzWJeRNh5aOqZXdaGLIgDoPxXIIYX9P0MHeW4uN7/nWMDHCnWU02CxP/I5j/Dys /fPyCzi027LVkbgDKM1JCue1k2gNEove1Oup5yT8vayiPkp8NfrbFbvy2mM4mPzZ1YeQfwIJTQsca rjuxGRY64Ikm2qfT44CWtb3wcSuX3cG/Hs80W2F+EuAnavLUBkGxQjlqdRIqSCEvre9w2XQfE29WL dSG3z7bWVfD/lXj1pIrVLoJLVg3D4g10HCqPCLTIcf+YOA1LloIKv1SEw3/2xYk02PZz0V9loEYlG zFnRjOef8jnKUewveg==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1s2Yfw-004ILZ-2R; Thu, 02 May 2024 15:48:48 +0000 From: linux@treblig.org To: sudipm.mukherjee@gmail.com Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, linux-parport@lists.infradead.org, "Dr. David Alan Gilbert" Subject: [PATCH 2/3] parport: Remove attach function pointer Date: Thu, 2 May 2024 16:48:22 +0100 Message-ID: <20240502154823.67235-3-linux@treblig.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240502154823.67235-1-linux@treblig.org> References: <20240502154823.67235-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" The attach function pointers haven't actually been called since: 'commit 3275158fa52a ("parport: remove use of devmodel")' topped adding entries to the drivers list. If you're converting a driver, look at the 'match_port' function pointer instead. (There are lots of comment references to 'attach' all over, but they probably need some deeper understanding to check the semantics to see if they can be replaced by match_port). Signed-off-by: Dr. David Alan Gilbert --- include/linux/parport.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/parport.h b/include/linux/parport.h index 2a4424b601565..190de3569e25c 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h @@ -252,7 +252,6 @@ struct parport { struct parport_driver { const char *name; - void (*attach) (struct parport *); void (*detach) (struct parport *); void (*match_port)(struct parport *); int (*probe)(struct pardevice *); -- 2.44.0