Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp590567pxb; Tue, 15 Feb 2022 23:05:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfa3w2fvJ8lv1egy1I5jGcCH8kEa73OxVi7uYSNeWZFKPGyhvj2KAkDED65rkiN/JUejCk X-Received: by 2002:a05:6a00:1a0b:b0:4cf:9a9:5c5f with SMTP id g11-20020a056a001a0b00b004cf09a95c5fmr1831357pfv.45.1644995104436; Tue, 15 Feb 2022 23:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644995104; cv=none; d=google.com; s=arc-20160816; b=V4lCRcy4LyqW9yf2GIqxmaWZVWdbm+gQ9q7fpmG7Ve66/DwP1rGWC4Y11AxEM23aL4 ByNgI58I6ZpjXi8+eX7Sxb8x1k3YlL3kg2Se3rtPedlTyO2kLBmo83vcZ4XH9DZeQegg lAlD7V0ruURK/KfrXxvKErVQMbHTCvMUHjO0EJyXetnr1BQAyqHkvfzMTw8YeyOXPNlD ngTfqJfmSYQd+nRElcv6l5XLHnCyf618HjbZ2orHEBMBYtYTCcAIqFqkQM6kjNJLgKj3 jG5D6j/faFm1xllNyKJ2w8U9A9wF5T/le/FJsr8RAwRi1BwSBGAwB6Oe96kBgSIxgdzu XTCg== 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:dkim-signature; bh=kFteAajFcLVpaHH20rO9g3ri1wOFjJtwwLb0/qJuCg0=; b=Z3nYEqp8hHl4IQQPksQVxBiW+xgUg9N+9DV+2szX4YEIRCunFVBlJRHu0URikl76IF w6/23C+wFuCJnHvQsZLAqivKVu4X2KwR1XS2xJKX/QpvmV2+l+OiCzvRayTW9G9xQcY6 hb5isi/nTKFitcxTGGAoqZA1cQ87h0Y7jp9UGhqahxaSbh1qD324y1cL+wHaqCApK3GE Jh96TkU4CO8CdNU+XNZhVpkrHEa6Kpuck08oriKYVvap8eXZrNp0MmUA1AaHan5zTs4q u7lZbvvE5LvEeZ2LgHsqUZC6IX7/gp4RrtIb8PgeAbcQsh2w8TStpoVaMknH5Yiy2sR+ /3cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Gyn+iQrZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 203si4921099pgf.749.2022.02.15.23.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:05:04 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Gyn+iQrZ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 948A6A9A56; Tue, 15 Feb 2022 22:42:31 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243096AbiBOSc7 (ORCPT + 99 others); Tue, 15 Feb 2022 13:32:59 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241061AbiBOSc5 (ORCPT ); Tue, 15 Feb 2022 13:32:57 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B143274DF5 for ; Tue, 15 Feb 2022 10:32:47 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21FIWfFn042797; Tue, 15 Feb 2022 12:32:41 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1644949961; bh=kFteAajFcLVpaHH20rO9g3ri1wOFjJtwwLb0/qJuCg0=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=Gyn+iQrZdJnqDByYU0+hq9Bd/pVo0Q3KVzB4OfqNDYHwyxVHO0h+JtmpWoLvHZ1kr wA1s9h1Y+Z/H0t+RozxbNfeJ5l+fUuISIKuOyxguga3+HDhc1YQkKsmZi7YWx+VbQk Ys/v5K9nEizBGh4GdObgp32P2g46mW9vFEI9Pk40= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21FIWfBq119261 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 15 Feb 2022 12:32:41 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 15 Feb 2022 12:32:41 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 15 Feb 2022 12:32:41 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21FIWeVU088799; Tue, 15 Feb 2022 12:32:40 -0600 Date: Wed, 16 Feb 2022 00:02:39 +0530 From: Pratyush Yadav To: Michael Walle CC: , , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Subject: Re: [PATCH v1 02/14] mtd: spi-nor: slightly refactor the spi_nor_setup() Message-ID: <20220215183239.7p7avldxrpkovqln@ti.com> References: <20220202145853.4187726-1-michael@walle.cc> <20220202145853.4187726-3-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20220202145853.4187726-3-michael@walle.cc> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 02/02/22 03:58PM, Michael Walle wrote: > Instead of always using a function pointer (and initializing it to our > default), just call the default function if the flash didn't set its own > one. That will make the call flow easier to follow. > > Also mark the parameter as optional now. > > Signed-off-by: Michael Walle Reviewed-by: Pratyush Yadav -- Regards, Pratyush Yadav Texas Instruments Inc.