process to develop linux 5.4

时间:2024-06-11 07:14:10

/**
 * nand_get_sdr_timings - get SDR timing from data interface
 * @conf:       The data interface
 */
static inline const struct nand_sdr_timings *
nand_get_sdr_timings(const struct nand_data_interface *conf)
{
        if (conf->type != NAND_SDR_IFACE)
                return ERR_PTR(-EINVAL);

        return &conf->timings.sdr;
}

/**
 * nand_get_interface_config - Retrieve the current interface configuration
 *                             of a NAND chip
 * @chip: The NAND chip
 */
static inline const struct nand_interface_config *
nand_get_interface_config(struct nand_chip *chip)
{
        return chip->current_interface_config;
}

struct nand_controller_ops {
        int (*attach_chip)(struct nand_chip *chip);
        void (*detach_chip)(struct nand_chip *chip);
        int (*exec_op)(struct nand_chip *chip,
                       const struct nand_operation *op,
                       bool check_only);
        int (*setup_data_interface)(struct nand_chip *chip, int chipnr,
                                    const struct nand_data_interface *conf);
};

nand_get_sdr_timings

5.4 

/**
 * nand_get_sdr_timings - get SDR timing from data interface
 * @conf:       The data interface
 */
static inline const struct nand_sdr_timings *
nand_get_sdr_timings(const struct nand_data_interface *conf)
{
        if (conf->type != NAND_SDR_IFACE)
                return ERR_PTR(-EINVAL);

        return &conf->timings.sdr;
}

ft
/**
 * nand_get_sdr_timings - get SDR timing from data interface
 * @conf:       The data interface
 */
static inline const struct nand_sdr_timings *
nand_get_sdr_timings(const struct nand_interface_config *conf)
{
        if (!nand_interface_is_sdr(conf))
                return ERR_PTR(-EINVAL);

        return &conf->timings.sdr;
}


nand_data_interface
nand_interface_config

/**
 * nand_get_sdr_timings - get SDR timing from data interface
 * @conf:       The data interface
 */
static inline const struct nand_sdr_timings *
nand_get_sdr_timings(const struct nand_interface_config *conf)
{
        if (!nand_interface_is_sdr(conf))
                return ERR_PTR(-EINVAL);

        return &conf->timings.sdr;
}

/**
 * nand_get_sdr_timings - get SDR timing from data interface
 * @conf:       The data interface
 */
static inline const struct nand_sdr_timings *
nand_get_sdr_timings(const struct nand_data_interface *conf)
{
        if (conf->type != NAND_SDR_IFACE)
                return ERR_PTR(-EINVAL);

        return &conf->timings.sdr;


}


struct nand_interface_config