Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3895629imm; Mon, 25 Jun 2018 06:28:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL4rU+OxsEiFtsvqGVlPi5DuG8QUiZgiarV8gE1DrgiJha1oTBO4fB/1cPD1cUQVfKN8VXF X-Received: by 2002:a65:53cb:: with SMTP id z11-v6mr3986903pgr.218.1529933336520; Mon, 25 Jun 2018 06:28:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529933336; cv=none; d=google.com; s=arc-20160816; b=hfy0inrV16mD492Vi6rNPIiYBhhdLs9PeSnZ3cvbp59F0N1QsulYMzJB18kwUd3wzc XBiWevB+rxhmYmH/YXWCStz87sFHpGgfPWXm0rOMTipsXezfT+3Q6I6QnLvrTP+u4QER EHlv/B3cyoX/abcmX3SJdOfvBDBnvW5cy9pK4c7emoht+9pLd6Grgh8jYek0TVzkbZIv vrkI0QeGgncUfDzNeUlxyNUMaxeLeFve6D4+uO0EjAwFAZKf++3uwuD9ZORBhf5TxUg2 XkKaFtHyAHqkp0MOKi6+2iF/BW8QBOwf4zF3HT5vf4BMXA/rUUsTX7jmYlI/UfdtNYkI LFgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:cc:to:from:subject :references:in-reply-to:user-agent:content-transfer-encoding :mime-version:arc-authentication-results; bh=BKngoRQcWGre9zmwEC3WqdahhMHBG8RnDZcYRf5zef0=; b=WEZtUcUU+/WJU4IuFMMEQbVZJ/zHbdlYMxWGcbYDcQNlCZqEWHQLbunUOsYG/vzBWj J1tpnNb1aj0e+gzTVGKH2QqnAc6CPzHsyKDReGAWR69epmXUfAVeDwhB4xOGPjZ8EMRn 1WNaY4Wh3M9adK85naKqr5tSF0ZP3ezV5tjNiHW9DE08PWMOm4S13+aZgN54qcpqKot1 DnfcD+/eI6RU9Q7IGZGby8j63vaftwji8RrlpUrucP3PbPC7onsXTaw1LwVphGNqC3uB RRWaWgKCPwiIz1BaxvlM+nfXtqFudoVKAFU+gsSuc81OdeDYlLdSkxIkG99tfh6kAVVJ 5YAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a9-v6si3159973pgf.380.2018.06.25.06.28.41; Mon, 25 Jun 2018 06:28:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755534AbeFYN2B (ORCPT + 99 others); Mon, 25 Jun 2018 09:28:01 -0400 Received: from dd39320.kasserver.com ([85.13.155.146]:45652 "EHLO dd39320.kasserver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755461AbeFYN2A (ORCPT ); Mon, 25 Jun 2018 09:28:00 -0400 Received: from dd39320.kasserver.com (dd0802.kasserver.com [85.13.143.1]) by dd39320.kasserver.com (Postfix) with ESMTPSA id D724A2CE0120; Mon, 25 Jun 2018 15:27:58 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-SenderIP: 108.171.129.168 User-Agent: ALL-INKL Webmail 2.11 In-Reply-To: <20180625123554.dlpgejqmjm7haak4@mwanda> References: <20180624094245.23741-1-Valentin.Vidic@CARNet.hr> <20180624163138.30976-1-Valentin.Vidic@CARNet.hr><20180625123554.dlpgejqmjm7haak4@mwanda> Subject: Re: [PATCH v3] staging: pi433: replace simple switch statements From: marcus.wolf@smarthome-wolf.de To: Valentin.Vidic@CARNet.hr, dan.carpenter@oracle.com Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, robsonde@gmail.com, michael.panzlaff@fau.de, hle@owl.eu.com, luca@acul.me, linux-kernel@vger.kernel.org, marcin.s.ciupak@gmail.com, linux@Wolf-Entwicklungen.de, simon@nikanor.nu, joe@perches.com Message-Id: <20180625132758.D724A2CE0120@dd39320.kasserver.com> Date: Mon, 25 Jun 2018 15:27:58 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, I'd like to mention once more, that the idea of the abstraction was to support multiple modules of Hope-RF. If the decision of the "team" of developer of this driver is, that it should be reduced to a Pi433 or RFM69CW driver only, I fully agree, that the abstraction layer isn't necessary (tough improving readability). But if the "team" wants to extend the driver - here I explicitly want to Name Marcin Ciupak and Hogo Lefeuvre, both were discussing this with me - I highly recommend to keep the abstraction layer. And once again, I have to announce, that - if noone appears, who wants to help me with selling Pi433 - I can't effort to let Pi433 on the market longer then end of this year. From this Point of view on long term it might be senseless to prepare a Pi433-only driver. Cheers, Marcus Dan Carpenter schrieb am 25.06.2018 14:35: > I'd still prefer if we just removed this abstraction entirely and used > OPMODE_MODE_TRANSMIT everywhere instead of bringing "transmit" into it. > > I know that every author thinks their abstraction will definitely be > useful in the future, but generally kernel style is to remove > abstractions. > > But I guess this code is an improvement over the original so the patch > is fine. > > regards, > dan carpenter > >