source: patches/linux-2.6.11-gcc4_fixes.patch@ 873009c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 873009c was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100644
File size: 10.7 KB
  • ./include/linux/i2c.h

    old new  
    5555
    5656/* Transfer num messages.
    5757 */
    58 extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[],int num);
     58extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num);
    5959
    6060/*
    6161 * Some adapter types (i.e. PCF 8584 based ones) may support slave behaviuor.
     
    194194           to NULL. If an adapter algorithm can do SMBus access, set
    195195           smbus_xfer. If set to NULL, the SMBus protocol is simulated
    196196           using common I2C messages */
    197         int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg msgs[],
     197        int (*master_xfer)(struct i2c_adapter *adap,struct i2c_msg *msgs,
    198198                           int num);
    199199        int (*smbus_xfer) (struct i2c_adapter *adap, u16 addr,
    200200                           unsigned short flags, char read_write,
  • ./drivers/i2c/busses/i2c-iop3xx.c

    old new  
    361361 * master_xfer() - main read/write entry
    362362 */
    363363static int
    364 iop3xx_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[],
     364iop3xx_i2c_master_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs,
    365365                                int num)
    366366{
    367367        struct i2c_algo_iop3xx_data *iop3xx_adap = i2c_adap->algo_data;
  • ./drivers/i2c/i2c-core.c

    old new  
    583583 * ----------------------------------------------------
    584584 */
    585585
    586 int i2c_transfer(struct i2c_adapter * adap, struct i2c_msg msgs[],int num)
     586int i2c_transfer(struct i2c_adapter * adap, struct i2c_msg *msgs, int num)
    587587{
    588588        int ret;
    589589
  • ./drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c

    old new  
    252252        return rcv_len;
    253253}
    254254
    255 static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg msg[], int num)
     255static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg *msg, int num)
    256256{
    257257        struct ttusb *ttusb = i2c_get_adapdata(adapter);
    258258        int i = 0;
  • ./drivers/media/dvb/b2c2/skystar2.c

    old new  
    293293        return buf - start;
    294294}
    295295
    296 static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg msgs[], int num)
     296static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg *msgs, int num)
    297297{
    298298        struct adapter *tmp = i2c_get_adapdata(adapter);
    299299        int i, ret = 0;
  • ./Documentation/i2c/writing-clients

    old new  
    642642parameter contains the bytes the read/write, the third the length of the
    643643buffer. Returned is the actual number of bytes read/written.
    644644 
    645   extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[],
     645  extern int i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msg,
    646646                          int num);
    647647
    648648This sends a series of messages. Each message can be a read or write,
  • ./include/media/saa7146.h

    old new  
    157157
    158158/* from saa7146_i2c.c */
    159159int saa7146_i2c_adapter_prepare(struct saa7146_dev *dev, struct i2c_adapter *i2c_adapter, u32 bitrate);
    160 int saa7146_i2c_transfer(struct saa7146_dev *saa, const struct i2c_msg msgs[], int num,  int retries);
     160int saa7146_i2c_transfer(struct saa7146_dev *saa, const struct i2c_msg *msgs, int num,  int retries);
    161161
    162162/* from saa7146_core.c */
    163163extern struct list_head saa7146_devices;
  • ./drivers/i2c/busses/i2c-s3c2410.c

    old new  
    483483 * this starts an i2c transfer
    484484*/
    485485
    486 static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c, struct i2c_msg msgs[], int num)
     486static int s3c24xx_i2c_doxfer(struct s3c24xx_i2c *i2c, struct i2c_msg *msgs, int num)
    487487{
    488488        unsigned long timeout;
    489489        int ret;
     
    534534*/
    535535
    536536static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
    537                         struct i2c_msg msgs[], int num)
     537                        struct i2c_msg *msgs, int num)
    538538{
    539539        struct s3c24xx_i2c *i2c = (struct s3c24xx_i2c *)adap->algo_data;
    540540        int retry;
  • ./drivers/i2c/busses/i2c-mpc.c

    old new  
    233233        return length;
    234234}
    235235
    236 static int mpc_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
     236static int mpc_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
    237237{
    238238        struct i2c_msg *pmsg;
    239239        int i;
  • ./drivers/i2c/busses/i2c-ibm_iic.c

    old new  
    549549 * Generic master transfer entrypoint.
    550550 * Returns the number of processed messages or error (<0)
    551551 */
    552 static int iic_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
     552static int iic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
    553553{
    554554        struct ibm_iic_private* dev = (struct ibm_iic_private*)(i2c_get_adapdata(adap));
    555555        volatile struct iic_regs __iomem *iic = dev->vaddr;
  • ./drivers/i2c/busses/i2c-keywest.c

    old new  
    399399 */
    400400static int
    401401keywest_xfer(   struct i2c_adapter *adap,
    402                 struct i2c_msg msgs[],
     402                struct i2c_msg *msgs,
    403403                int num)
    404404{
    405405        struct keywest_chan* chan = i2c_get_adapdata(adap);
  • ./drivers/i2c/busses/i2c-au1550.c

    old new  
    253253}
    254254
    255255static int
    256 au1550_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num)
     256au1550_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
    257257{
    258258        struct i2c_au1550_data *adap = i2c_adap->algo_data;
    259259        struct i2c_msg *p;
  • ./drivers/i2c/algos/i2c-algo-pca.c

    old new  
    178178}
    179179
    180180static int pca_xfer(struct i2c_adapter *i2c_adap,
    181                     struct i2c_msg msgs[],
     181                    struct i2c_msg *msgs,
    182182                    int num)
    183183{
    184184        struct i2c_algo_pca_data *adap = i2c_adap->algo_data;
  • ./drivers/i2c/algos/i2c-algo-pcf.c

    old new  
    332332}
    333333
    334334static int pcf_xfer(struct i2c_adapter *i2c_adap,
    335                     struct i2c_msg msgs[],
     335                    struct i2c_msg *msgs,
    336336                    int num)
    337337{
    338338        struct i2c_algo_pcf_data *adap = i2c_adap->algo_data;
  • ./drivers/i2c/algos/i2c-algo-ite.c

    old new  
    490490 * condition.
    491491 */
    492492#if 0
    493 static int iic_combined_transaction(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num)
     493static int iic_combined_transaction(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
    494494{
    495495   int i;
    496496   struct i2c_msg *pmsg;
     
    600600 * verify that the bus is not busy or in some unknown state.
    601601 */
    602602static int iic_xfer(struct i2c_adapter *i2c_adap,
    603                     struct i2c_msg msgs[],
     603                    struct i2c_msg *msgs,
    604604                    int num)
    605605{
    606606        struct i2c_algo_iic_data *adap = i2c_adap->algo_data;
  • ./drivers/i2c/algos/i2c-algo-sgi.c

    old new  
    131131        return 0;
    132132}
    133133
    134 static int sgi_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[],
     134static int sgi_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs,
    135135                    int num)
    136136{
    137137        struct i2c_algo_sgi_data *adap = i2c_adap->algo_data;
  • ./drivers/media/video/saa7134/saa7134-i2c.c

    old new  
    236236}
    237237
    238238static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap,
    239                             struct i2c_msg msgs[], int num)
     239                            struct i2c_msg *msgs, int num)
    240240{
    241241        struct saa7134_dev *dev = i2c_adap->algo_data;
    242242        enum i2c_status status;
  • ./drivers/media/video/bttv-i2c.c

    old new  
    245245        return retval;
    246246}
    247247
    248 static int bttv_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msgs[], int num)
     248static int bttv_i2c_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg *msgs, int num)
    249249{
    250250        struct bttv *btv = i2c_get_adapdata(i2c_adap);
    251251        int retval = 0;
  • ./drivers/media/dvb/dibusb/dvb-dibusb-fe-i2c.c

    old new  
    3838/*
    3939 * I2C master xfer function
    4040 */
    41 static int dibusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num)
     41static int dibusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg *msg,int num)
    4242{
    4343        struct usb_dibusb *dib = i2c_get_adapdata(adap);
    4444        int i;
  • ./drivers/media/common/saa7146_i2c.c

    old new  
    2525   sent through the saa7146. have a look at the specifications p. 122 ff
    2626   to understand this. it returns the number of u32s to send, or -1
    2727   in case of an error. */
    28 static int saa7146_i2c_msg_prepare(const struct i2c_msg m[], int num, u32 *op)
     28static int saa7146_i2c_msg_prepare(const struct i2c_msg *m, int num, u32 *op)
    2929{
    3030        int h1, h2;
    3131        int i, j, addr;
     
    8989   which bytes were read through the adapter and write them back to the corresponding
    9090   i2c-message. but instead, we simply write back all bytes.
    9191   fixme: this could be improved. */
    92 static int saa7146_i2c_msg_cleanup(const struct i2c_msg m[], int num, u32 *op)
     92static int saa7146_i2c_msg_cleanup(const struct i2c_msg *m, int num, u32 *op)
    9393{
    9494        int i, j;
    9595        int op_count = 0;
     
    272272        return 0;
    273273}
    274274
    275 int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg msgs[], int num, int retries)
     275int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *msgs, int num, int retries)
    276276{
    277277        int i = 0, count = 0;
    278278        u32* buffer = dev->d_i2c.cpu_addr;
     
    372372}
    373373
    374374/* utility functions */
    375 static int saa7146_i2c_xfer(struct i2c_adapter* adapter, struct i2c_msg msg[], int num)
     375static int saa7146_i2c_xfer(struct i2c_adapter* adapter, struct i2c_msg *msg, int num)
    376376{
    377377        struct saa7146_dev* dev = i2c_get_adapdata(adapter);
    378378       
Note: See TracBrowser for help on using the repository browser.