Re: [PATCH 1/3] mfd: arizona: Support Cirrus Logic CS47L24 and WM1831

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Richard,

[auto build test WARNING on next-20151016 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]

url:    https://github.com/0day-ci/linux/commits/Richard-Fitzgerald/Add-support-for-Cirrus-Logic-CS47L24-and-WM1831-codecs/20151019-203503
config: i386-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/mfd/cs47l24-tables.c: In function 'cs47l24_patch':
>> drivers/mfd/cs47l24-tables.c:33:10: warning: passing argument 2 of 'regmap_register_patch' from incompatible pointer type [-Wincompatible-pointer-types]
             cs47l24_reva_patch,
             ^
   In file included from include/linux/mfd/arizona/core.h:17:0,
                    from drivers/mfd/cs47l24-tables.c:15:
   include/linux/regmap.h:726:5: note: expected 'const struct reg_sequence *' but argument is of type 'const struct reg_default *'
    int regmap_register_patch(struct regmap *map, const struct reg_sequence *regs,
        ^

vim +/regmap_register_patch +33 drivers/mfd/cs47l24-tables.c

    17	#include <linux/device.h>
    18	
    19	#include "arizona.h"
    20	
    21	#define CS47L24_NUM_ISR 5
    22	
    23	static const struct reg_default cs47l24_reva_patch[] = {
    24		{ 0x80,  0x3 },
    25		{ 0x27C, 0x0010 },
    26		{ 0x221, 0x0070 },
    27		{ 0x80,  0x0 },
    28	};
    29	
    30	int cs47l24_patch(struct arizona *arizona)
    31	{
    32		return regmap_register_patch(arizona->regmap,
  > 33					     cs47l24_reva_patch,
    34					     ARRAY_SIZE(cs47l24_reva_patch));
    35	}
    36	EXPORT_SYMBOL_GPL(cs47l24_patch);
    37	
    38	static const struct regmap_irq cs47l24_irqs[ARIZONA_NUM_IRQ] = {
    39		[ARIZONA_IRQ_GP2] = { .reg_offset = 0, .mask = ARIZONA_GP2_EINT1 },
    40		[ARIZONA_IRQ_GP1] = { .reg_offset = 0, .mask = ARIZONA_GP1_EINT1 },
    41	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux