smsc 36 drivers/mfd/smsc-ece1099.c struct smsc *smsc; smsc 40 drivers/mfd/smsc-ece1099.c smsc = devm_kzalloc(&i2c->dev, sizeof(*smsc), GFP_KERNEL); smsc 41 drivers/mfd/smsc-ece1099.c if (!smsc) smsc 44 drivers/mfd/smsc-ece1099.c smsc->regmap = devm_regmap_init_i2c(i2c, &smsc_regmap_config); smsc 45 drivers/mfd/smsc-ece1099.c if (IS_ERR(smsc->regmap)) smsc 46 drivers/mfd/smsc-ece1099.c return PTR_ERR(smsc->regmap); smsc 48 drivers/mfd/smsc-ece1099.c i2c_set_clientdata(i2c, smsc); smsc 49 drivers/mfd/smsc-ece1099.c smsc->dev = &i2c->dev; smsc 52 drivers/mfd/smsc-ece1099.c of_property_read_u32(i2c->dev.of_node, "clock", &smsc->clk); smsc 55 drivers/mfd/smsc-ece1099.c regmap_read(smsc->regmap, SMSC_DEV_ID, &devid); smsc 56 drivers/mfd/smsc-ece1099.c regmap_read(smsc->regmap, SMSC_DEV_REV, &rev); smsc 57 drivers/mfd/smsc-ece1099.c regmap_read(smsc->regmap, SMSC_VEN_ID_L, &venid_l); smsc 58 drivers/mfd/smsc-ece1099.c regmap_read(smsc->regmap, SMSC_VEN_ID_H, &venid_h); smsc 63 drivers/mfd/smsc-ece1099.c ret = regmap_write(smsc->regmap, SMSC_CLK_CTRL, smsc->clk); smsc 40 include/linux/mfd/smsc.h struct smsc *smsc = dev_get_drvdata(child->parent); smsc 42 include/linux/mfd/smsc.h return regmap_read(smsc->regmap, reg, dest); smsc 48 include/linux/mfd/smsc.h struct smsc *smsc = dev_get_drvdata(child->parent); smsc 50 include/linux/mfd/smsc.h return regmap_write(smsc->regmap, reg, value);