lkml.org 
[lkml]   [2010]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] mfd: Added new regulator_data pointer to ab8500 board configuration
    On Tue, Nov 23, 2010 at 07:25:52PM +0100, Bengt Jonsson wrote:

    > The ab8500 regulator board configuration will be better separated
    > from the MFD board configuration. This patch adds a void pointer
    > for this purpose.

    Adding something completely typesafe seems like a real loss - if you
    want to point to something else at least point to a particular type -
    eg,

    struct foo;

    struct pdata {
    int other_stuff;
    struct foo *foo;
    };

    > struct regulator_init_data *regulator[AB8500_NUM_REGULATORS];
    > + void *regulator_data;

    It'd also help if you could articulate the problem you see with the
    current approach...


    \
     
     \ /
      Last update: 2010-11-23 19:33    [W:2.798 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site