From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Van Asbroeck Subject: Re: [PATCH v1 1/2] eeprom: at24: convert magic numbers to structs. Date: Fri, 8 Dec 2017 09:10:17 -0500 Message-ID: References: <1512576272-25563-1-git-send-email-svendev@arcx.com> <1512576272-25563-2-git-send-email-svendev@arcx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-i2c-owner@vger.kernel.org To: Bartosz Golaszewski Cc: Sven Van Asbroeck , Wolfram Sang , nsekhar@ti.com, Sakari Ailus , Javier Martinez Canillas , Divagar Mohandass , devicetree@vger.kernel.org, Linux Kernel Mailing List , linux-i2c List-Id: devicetree@vger.kernel.org Hi Bartosz, thanks for the encouragement ! Bartosz wrote: > Also: please have the AT24/at24 prefix for symbols in the driver. These specific symbols are declared static, i.e. they're visible only inside at24.c. Do you think they should still have an at24 prefix ? +#define DECLARE_AT24_PLATDATA(_name, _len, _flags) \ + static const struct at24_platform_data platdata_##_name = { \ + .byte_len = _len, .flags = _flags, \ + }