expected initializer before '<' token error when compiling

I'm working on a proof of concept prototype for my design thesis, and have run into this error that I can't figure out. I'm a total beginner with arduino and coding, and really appreciate any and all help I can get.

#include <Wire.h>
#include "Adafruit_DRV2605.h"

const int TOTAL_MOTORS = 4;

Adafruit_DRV2605 drv;
int motorNumber = 0; 

void setup() {
  
  Serial.begin(9600);
  Serial.println("DRV test");

  // Pins for four motor controllers
  for (int i=0, i<TOTAL_MOTORS, i++ )
  {
    pinMode(2, OUTPUT);
  }
  
}

void loop() {
  
  programHaptic(motorNumber);
  motorNumber = (motorNumber + 1) % TOTAL_MOTORS;
  delay(2000);

}

void programHaptic (int h) {
  
  // Turn on h, turn off everything else
  for (int i=0, i<TOTAL_MOTORS, i++) {
    if (i==h) {
      digitalWrite (2+i, HIGH);
    } else {
      digitalWrite (2+i, LOW);
    }
  }
  
  // Initialize, program, and start motor
  drv.begin ();
  drv.setMode(DRV2605_MODE_INTTRIG); // default, internal trigger when sending GO command
  drv.selectLibrary(1);
  drv.setWaveform(0, 52);
  drv.setWaveform(1, 1);
  drv.setWaveform(2, 0);
  drv.go();

}

That is entire thing, and when I try and compile it to upload, I get the following error, with line 15 highlighted:

expected initializer before '<' token

Vibrate_Motor_Test_2_2.ino: In function 'void setup()':
Vibrate_Motor_Test_2_2:15: error: expected initializer before '<' token
Vibrate_Motor_Test_2_2:20: error: expected primary-expression before '}' token
Vibrate_Motor_Test_2_2:20: error: expected `;' before '}' token
Vibrate_Motor_Test_2_2:20: error: expected primary-expression before '}' token
Vibrate_Motor_Test_2_2:20: error: expected `)' before '}' token
Vibrate_Motor_Test_2_2:20: error: expected primary-expression before '}' token
Vibrate_Motor_Test_2_2:20: error: expected `;' before '}' token
Vibrate_Motor_Test_2_2.ino: In function 'void programHaptic(int)':
Vibrate_Motor_Test_2_2:33: error: expected initializer before '<' token
Vibrate_Motor_Test_2_2:50: error: expected primary-expression at end of input
Vibrate_Motor_Test_2_2:50: error: expected `;' at end of input
Vibrate_Motor_Test_2_2:50: error: expected primary-expression at end of input
Vibrate_Motor_Test_2_2:50: error: expected `)' at end of input
Vibrate_Motor_Test_2_2:50: error: expected statement at end of input
Vibrate_Motor_Test_2_2:50: error: expected `}' at end of input

Please don't rail me too hard, I realize it's probably something pretty basic in the grand scheme of things, but it's really difficult for me as I'm just trying to learn and wrap my head about it.

Thanks in advance for any help!

Replace the commas in both the for statement with semicolons.

  for (int i=0; i<TOTAL_MOTORS; i++ )

SurferTim, you are my hero.

Thank you so much!